MatthiasG Posted July 27, 2009 Share Posted July 27, 2009 Hello there!I've got three question about the _SciLexer:1st: I want to highlight my own words, for example "tree" gets tree2nd: I want to highlight everything in brackets, for exapmle "(hello)" gets (hello)3rt: I want to higlight everything after an Symbol, for example "tree & apple" gets tree & appleHow would I do that?Thank you, for all replies >_< Have a nice week!Matthias Link to comment Share on other sites More sharing options...
MatthiasG Posted July 28, 2009 Author Share Posted July 28, 2009 Has noone an idea? >_ Link to comment Share on other sites More sharing options...
Developers Jos Posted July 28, 2009 Developers Share Posted July 28, 2009 (edited) Hello there!I've got three question about the _SciLexer:1st: I want to highlight my own words, for example "tree" gets tree2nd: I want to highlight everything in brackets, for exapmle "(hello)" gets (hello)3rt: I want to higlight everything after an Symbol, for example "tree & apple" gets tree & appleHow would I do that?Thank you, for all replies >_< Have a nice week!MatthiasMatthias,SciLexer.dll works with Language definitions. All information can be found on the SciTE/Scintilla Website on how things are working.Creating your own lexer language is not a trivial thing but that is also described how that is done.It normally better to select a supported Lexer language and see if you can adapt that to your own needs. Jos Edited July 28, 2009 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
GodlessSinner Posted July 28, 2009 Share Posted July 28, 2009 (edited) It's possible. Open Scite, then select Options\Open au3.keywords.propertiesIf you add to this string: autoitsetoption autoitwingettitle autoitwinsettitle beep binary binarylen binarymid \"testing" to take this: autoitsetoption autoitwingettitle autoitwinsettitle beep binary binarylen binarymid testing \Restart Scite.When you type word "testing" in Scite you will see testingEDIT: and, of course, you will get an error. I only show you some direction.. Edited July 28, 2009 by Vitas _____________________________________________________________________________ Link to comment Share on other sites More sharing options...
Developers Jos Posted July 28, 2009 Developers Share Posted July 28, 2009 It's possible. Open Scite, then select Options\Open au3.keywords.propertiesIf you add to this string: autoitsetoption autoitwingettitle autoitwinsettitle beep binary binarylen binarymid \"testing" to take this: autoitsetoption autoitwingettitle autoitwinsettitle beep binary binarylen binarymid testing \Restart Scite.When you type word "testing" in Scite you will see testingEDIT: and, of course, you will get an error. I only show you some direction..I would suggest using a fileextension that you don't use, not au3, and modify that config file.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
MatthiasG Posted July 28, 2009 Author Share Posted July 28, 2009 (edited) Hello again! Thanks for the replies! Now, I'm not having much time, but tomorrow I will do test that. If you meant creating Lexers with that one here: http://www.scintilla.org/Lexer.txt I saw it, but how to do that in AutoIt? I mean, that is a different language, how to "import" it to AutoIt? Thanks again for all replies! Have a nice day, Matthias Edited July 28, 2009 by MatthiasG Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now