| View previous topic :: View next topic |
| Author |
Message |
Demetris
Joined: 05 Aug 2005 Posts: 16
|
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Wed Dec 14, 2005 1:31 am Post subject: |
|
|
Is someone here able to do the below to implement the above AutoHotkey Lexer (above) within Notepad2 ???
Minimum I would love that !
| Quote: | Could you please explain how to add or modify syntax schemes?
This requires modification of the Notepad2 source code.
The Scintilla documentation has an overview of syntax highlighting, and how to write your own lexer, in case the language you'd like to add is not supported by Scintilla.
The structures relevant to syntax highlighting can be found in Styles.c of the Notepad2 source code. Add your own structures to the global pLexArray, then adjust NUMLEXERS to the total number of syntax schemes. The style definitions can be found in SciLexer.h of the Scintilla source code.
Include the Lex*.cxx files from Scintilla required for your languages in your project and follow the instructions in Readme.txt to rebuild Notepad2. I recommend using Visual Studio .NET 7 or above.
[Notepad2 1.0.12 Source Code] |
|
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10667
|
Posted: Wed Dec 14, 2005 8:48 pm Post subject: |
|
|
| Thanks a lot. I'll review it for inclusion with a future version (assuming its author doesn't mind it being distributed). |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Wed Dec 14, 2005 10:26 pm Post subject: |
|
|
| Quote: | [Notepad2 International]
Notepad2 is based on the Scintilla source code editing component:
http://www.scintilla.org
The full Notepad2 source code is distributed under the terms of the
GNU General Public License and can be found at:
http://www.flos-freeware.ch
Copyright
Notepad2 is FREEWARE and may be used and distributed freely. Please
do not charge any distribution or download fees for this program,
except for the cost of the distribution medium. The use of the
software is AT YOUR OWN RISK.
If you have comments or questions, please drop me a note:
[Find contact information on my homepage]
(c) Florian Balmer 2004 |  |
|
| Back to top |
|
 |
|