|
|
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Syntax highlighting - Settings being over written with defaults
|
|
Re: Syntax highlighting - Settings being over written with defaults [message #48334 is a reply to message #48333] |
Sat, 24 June 2017 13:21 |
|
Klugier
Messages: 1095 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
I know what is wrong - but this is huge problem with our internal CodeEditor architecture - the problem is that we use global settings (some kind of singlet - which is always anti-pater). What we need to do in CodeEditor code area is just remove that singleton and make it per CodeEditor. Then we could pass settings for each instance of code editor in the independent way.
This structure is the problem (CodeEditor - Syntax.h):
struct HighlightSetup { // Global highlighting settings
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Sat, 24 June 2017 13:42] Report message to a moderator
|
|
|
|
|
|
|
Re: Syntax highlighting - Settings being over written with defaults [message #48348 is a reply to message #48347] |
Sun, 25 June 2017 15:49 |
|
Klugier
Messages: 1095 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
What about small helper functions in the code?
void HighlightSetup::DefaultHlStyles()
{
if(IsDark(SColorPaper()))
InitDarkHlStyles();
else
InitDefaultHlStyles();
Where "Init..." functions could be private class methods or static functions inside .cpp file. In my opinion this will give us better code readability.
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Sun, 25 June 2017 15:57] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: Syntax highlighting - Settings being over written with defaults [message #48379 is a reply to message #48332] |
Mon, 26 June 2017 18:20 |
Zed1
Messages: 11 Registered: June 2017
|
Promising Member |
|
|
Hi,
I am using 2017-06-26 06:52 upp-mingw-11204.7z.
Just as an example of a heavily used ide (and copied see github ATOM) is Sublime Text it is for free for evaluation https://www.sublimetext.com/.
This contains some very good functionality (ie. Select a var and ctl+d to select all other occurrences and edit via multi cursor) and could serve as a basis for some ideas for theIDE.
Having said this I also really like the functionality built into theIDE (jump to selected function, Assist, Layout designer, etc...) I am currently wearing out my alt-j and alt-i keys.
Choosing Ultimate++ was definitely one of my better decisions.
The more I use it the more like it and this forum's users are excellent with fast responses and helpful advise compared to some of the other forums that I use for web dev etc...
Thank you.
[Updated on: Mon, 26 June 2017 18:36] Report message to a moderator
|
|
|
|
|
|
Goto Forum:
Current Time: Wed Feb 05 05:56:12 CET 2025
Total time taken to generate the page: 0.02891 seconds
|
|
|