Examples of changing Lexer to LexerName #18
Closed
menees
started this conversation in
Show and tell
Replies: 2 comments
-
Great - the enumeration values converted to strings are not all going to work as suggested however. The test application displays the available lexers with the following code: for (int i = 0; i < Lexilla.GetLexerCount(); i++)
{
scintilla.AppendText(Lexilla.GetLexerName(i) + Environment.NewLine);
} And we get:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
This looks like a discussion that can be closed out, seems like most people know to use LexerName instead of Lexer at this point. Wiki has some examples to hopefully help out. If there is more to this discussion though, please re-open and we can continue the conversation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for this fork and support for v5! It's working well for me.
The only difficulty I ran into was that the Lexer property has been marked obsolete, and it says to use the LexerName property instead. I couldn't find any docs or examples about what LexerName supported, so I tried mixed case, uppercase, and lowercase using the old Lexer enum names. The mixed and uppercase names didn't work; the lowercase names did work. So, there's no change request here; I just wanted to post some thanks and some examples for others that need help migrating to v5.
I changed these lines:
To these lines:
Now all is well. :-)
Beta Was this translation helpful? Give feedback.
All reactions