Re: [OT] Notepad++ & Euphoria hi'light configuration
- Posted by znorq2 May 27, 2010
- 2696 views
Euphoria syntax hilighting in Notepad is something of a problem. Notepad uses the Scintilla edit component in which much of the hilighting is done by a lexer which is a part of the Scintilla dll. This works well for languages that are supported by Scintilla. Euphoria is not, so it is necessary to use a lexer that is close. As a result syntax hilighting is not going to be 100% correct.
I'm not familiar with Scintilla, but after a quick google trip, it looks like another editor.
There is a Euphoria editor in the archives that uses a custom Scintilla DLL that has a Euphoria lexer. I expect that this would work with Notepad but have not tried it. This DLL also predates Euphoria 4 so that may cause some hilighting issues.
I'll have a look at it. (Since I mostly still use 3.xx, this might be a solution?)
To me, it seems that NP can handle highlighting on a better scale for those already implemented, such as C/C, etc., but I reckon that there is a more complex & clever configuration behind it..
One of the problems is that since minus (-) have at least 2 different uses in Euphoria (operator and for commenting), I'm left (as far as I can see) with the choice to highlight comments or the operator. I've chosen highlighting comments. I can live with this.
However, nested sequences - they are completely messed up, unfortunately..
Thanks for the feedback.