Forgive me if this has been answered elsewhere, but I've searched exhaustively with no results.
What is the purpose of the "styleID" attribute? I imagine that the "name" attribute is only there for readability and convenience, but that the "styleID" is what's used to map syntax highlighting values. But it's not consistent. For instance, for most languages styleID="2" maps to "COMMENT_LINE". But not always.
I guess I'm wondering, if I wanted to add support for a new language, how do I know what value to assign to "styleID"?
Great product, thanks!!
Ryan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"styleID" has meaning only for the lexer (in Scintilla).
Since the lexers in Scintilla project are done by different contributors, the number of style ID may be a convention among the lexers (especially when the contributors begin theirs lexer from an existent one), but not certainly a obligation to follow.
"styleID" in styles.xml is done in the aim of being understood by application. but not by the guys like you and me, since the Styles Configurator does well its jobs. In this point of view, the existence of styleID is coherent.
There's no way to add an language by adding the tags in styler.xml (it is used for the lexers supported by Notepad++).
The only way to add a language in Notepad++ is using the User Language Define System (though it's far from perfect) to define your language.
Don
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Forgive me if this has been answered elsewhere, but I've searched exhaustively with no results.
What is the purpose of the "styleID" attribute? I imagine that the "name" attribute is only there for readability and convenience, but that the "styleID" is what's used to map syntax highlighting values. But it's not consistent. For instance, for most languages styleID="2" maps to "COMMENT_LINE". But not always.
I guess I'm wondering, if I wanted to add support for a new language, how do I know what value to assign to "styleID"?
Great product, thanks!!
Ryan
"styleID" has meaning only for the lexer (in Scintilla).
Since the lexers in Scintilla project are done by different contributors, the number of style ID may be a convention among the lexers (especially when the contributors begin theirs lexer from an existent one), but not certainly a obligation to follow.
"styleID" in styles.xml is done in the aim of being understood by application. but not by the guys like you and me, since the Styles Configurator does well its jobs. In this point of view, the existence of styleID is coherent.
There's no way to add an language by adding the tags in styler.xml (it is used for the lexers supported by Notepad++).
The only way to add a language in Notepad++ is using the User Language Define System (though it's far from perfect) to define your language.
Don