cogs42
Has anyone configured Notepad++ for editing Topas scripts? If so, would you be willing share the configuration file? :-)
At our workplace, we are not allowed to install JEdit! Notepad++ is my only current alternative.
yurijanssen
Hi,
I like notepad++. I have made a draft of a 'user-defined language' using TOPAS keywords (not chargeflipping or indexing), and standard macros. I also started to build an auto-complete file. I attached them as-is. Feel free to use them and look at them!
The files are xml files, and can be edited with any ascii editor.
Note that if you already have defined your own language, you may want to backup your existing UserDefineLang.xml..
UserDefineLang.xml goes to (typically) .... C:\Users\<name>\AppData\Roaming\Notepad++ (for keywords etc.)
TOPAS.xml goes to (typically) .... C:\Program Files (x86)\Notepad++\plugins\APIs (for autocomplete..)
You can do the keywords without autocomplete.
Good luck,
Yuri
yurijanssen
I forgot to add some comments:
The files I posted previously make Notepad++ behave a little like Jedit with the Durham macros.
Comments are made italic, folding between { } is possible. Keywords, standard macros, system variables, and directives are each highlighted with their own color and boldness.
Also folding between #ifdef (#ifndef), #else, and #endif is possible. A beginning to highlight numbers in their own way has been made. These can all be edited/seen under '> Language > define your language ...'.
The xml that takes care of the autocomplete may sometimes work in a quirky way. I am not sure how to deal with it. When it works, it provides a scrollable list of 'all keywords etc.' (not chargeflipping or indexing). The number of characters needed before autocompletion kicks in can be set in >settings > preferences > Backup/auto-completion.