Notepad++ CON Syntax Highlighters
#1 Posted 04 March 2013 - 04:03 PM
So Lord Misfit asked me about a Notepad++ syntax highlighter for CON earlier today, and I know there used to be one floating around, but I couldn't find it anywhere. So, I decided to make my own and share it with everyone else too.
Black-on-White Version
White-on-Black Version
#3 Posted 04 March 2013 - 04:34 PM
edit:
Oh, and your music pack kicks ass by the way!
This post has been edited by Kyle873: 04 March 2013 - 04:35 PM
#5 Posted 05 March 2013 - 12:54 PM
Kyle873, on 04 March 2013 - 04:03 PM, said:
So Lord Misfit asked me about a Notepad++ syntax highlighter for CON earlier today, and I know there used to be one floating around, but I couldn't find it anywhere. So, I decided to make my own and share it with everyone else too.
Black-on-White Version
White-on-Black Version
They don´t seem to work for me here. I use Notepad++ 6.3 (latest release), but it is still the plain black text on white background (no highlights). Do I have to move the files to a specific directory or can I import it from any directory on my HDD?
And are there .con and .CON files supported or only .con?
I found the Themes directory in Notepad++ but still no differences.
This post has been edited by blizzart: 05 March 2013 - 12:58 PM
#6 Posted 05 March 2013 - 02:03 PM
#7 Posted 06 March 2013 - 05:15 PM
#8 Posted 07 March 2013 - 09:47 AM
Drek, on 06 March 2013 - 05:15 PM, said:
Well that's esentially what I did was create a new theme. Strange that it isn't working for some of you, I created it on NP++ 6.3 so if you're using the latest version, import it, restart and open a CON file, it should work. Just to get an idea of what it should look like though (I use white on black, easier on the eyes IMO, but the black on white theme will use the same syntax colors):
This post has been edited by Kyle873: 07 March 2013 - 09:48 AM
#10 Posted 08 March 2013 - 11:46 AM
When I read the included .xml files of Notepad++, it looks quite different from yours; See plugins/APIs/ folder
#11 Posted 08 March 2013 - 11:58 AM
Mateos, on 08 March 2013 - 11:46 AM, said:
When I read the included .xml files of Notepad++, it looks quite different from yours; See plugins/APIs/ folder
As I understand it, the built-in language support using a different XML syntax from the UDL's (User-Defined Languages).
Anyway, after a little more investigating, it seems that the import style option doesn't do a damn thing. Instead, go into the language menu, then select "Define your Language", then click import and import the xml file. Restart and it SHOULD work now.
#12 Posted 08 March 2013 - 12:32 PM
#13 Posted 08 March 2013 - 01:04 PM
#14 Posted 08 March 2013 - 02:04 PM
#15 Posted 08 March 2013 - 02:58 PM
Drek, on 08 March 2013 - 02:04 PM, said:
Capture.PNG
Ah, good to see. Now there's a screenshot of both themes now too, nice.
#16 Posted 18 August 2015 - 09:54 AM
Let me guess, someone somewhere has already done that somewhere ? Well, I couldn't find it, plus investigating notepad++'s user defined language support has been on my to-do list for a very long time. The result is attached.
For both my laptops (win7 64-bit and win 8), and as mentioned in a previous post, I had to put the xml file in /users/[user]/AppData/roaming/notepad++. Once you've done that, in Notepad++ select menu [Language] -> [Define Your Language] and in the resulting dialog press the [import] button and select the xml file. You may need to close and reopen any m32 files already loaded, you may need to restart Notepad++.
I've only done a white background version - attempting a black background (as I'd prefer) caused all sorts of issues with other languages which I need to look at some time. I've tried to adopt a similar colouring and keyword-type grouping to that used by the original poster for CON files but added:
1) Different colour for variables that are actually passed into the script - currently sprite[],wall[], that kinda stuff, not complete though as I'm still new to these m32 files.
2) Highlighted things (using background highlighting) that should not be in a release version of an m32 file, using either orange for debug statements or red for items that the eduke wiki marks as deprecated or not ready for use.
3) Code folding. This isn't possible in CON files, but well done whoever designed m32 scripts and used 'defstate' instead of 'state' at a start of a block, doing it properly made all the difference.
4) Support for quoted strings and hex numbers (the latter was a right ******, please check it works for you!). Neither of these are needed in CON files.
I'm open to any suggestions if you thing the colour scheme choices could be improve (other than for comments - they WILL be grey. Ok?).
TTFN,
Jon
Attached File(s)
-
m32white-2.zip (2.12K)
Number of downloads: 847
#19 Posted 19 August 2015 - 11:24 AM
Daedolon, on 19 August 2015 - 07:06 AM, said:
Scintilla (used by Norepad2) is hard coded and rediculously complicated. Notepad2 itself no longer compiles. Sublime is a much better bet - another thing on my do-list, I'm very happy with notepad++ but it is windows-only whilstI also use Linux which rules it out. Also Sublime has an advantage in that it seperates the language definition from the presentation, so people can apply their own themes. Anyone else here use Sublime ?
TTFN,
Jon
#20 Posted 19 August 2015 - 12:03 PM
The Mechanic, on 19 August 2015 - 11:24 AM, said:
I feel like Notepad++ is a massive bloatware with the gazillion of menus and tab systems and side-menus (like it's Visual Studio or something) so I could never get into it. Notepad2 is the perfect notepad.exe replacement so this makes
Need to take a look at Sublime's syntax stuff I guess, I exhausted all of my interest for a CON syntax profile on Notepad2.
#21 Posted 19 August 2015 - 01:23 PM
Daedolon, on 19 August 2015 - 12:03 PM, said:
Need to take a look at Sublime's syntax stuff I guess, I exhausted all of my interest for a CON syntax profile on Notepad2.
Until fiddling with language stuff, you know in all the years I've used notepad++ I don't think I ever used any of the menus. I just edit text and save. And at 30MB it's disk space usage is modest enough. As regards Visual Studio, its a complex poerfull piece of software package and menu complexity come with the teritory. Sure, I swore a bit when trying to find out how to specify a manifest file when trying to get notepad2 to compile (and swore again when it still didn;t fix the problem), but bless it Visual Studio is awesome ( except 2008-2010, when the murdered C/C++ functionality).
It took notepad++ to finally ween me of my previous favorite text editor - PFE32 - and I suspect Sublime may replace my notepad++ in due course. However I think Sublime's custom language definitions may be undergoing a change at the moment ?
#22 Posted 02 September 2015 - 11:30 AM
This post has been edited by Mark.: 02 September 2015 - 11:31 AM
#23 Posted 03 September 2015 - 03:37 AM
#24 Posted 03 September 2015 - 11:23 AM
#25 Posted 03 September 2015 - 11:40 PM
#26 Posted 04 September 2015 - 10:48 AM
#27 Posted 05 September 2015 - 06:58 AM
#28 Posted 17 December 2017 - 09:25 AM
Here is another Notepad++ CON Syntax Highlighters I got from Mark.
Notepad++ CON Syntax Highlighters
I know this is a old post but it was the only post about Notepad++ CON Syntax Highlighters I found on google. And was a dead end.So now its not.
You can let this post get buried now.
#29 Posted 17 December 2017 - 09:41 AM
#30 Posted 18 December 2017 - 07:10 AM
I'm creating an extension for CON language. The syntax check and highlighting isn't complete yet. VS code can be used with GIT, so you can see what u changed in real time. (see attachment)