Sigurd's WML Syntax Highlighting for Notepad++

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.

Sigurd's WML Syntax Highlighting for Notepad++

Postby SigurdFireDragon » July 28th, 2016, 8:52 pm

Here's my Notepad++ wml syntax highlighter. It's based off of a previous wml file from the forums, with some changes.
The colors used are based on what colors Notepad++ uses for similar concepts in C++, Lua, and Python.

To use, you must have a Notepad++ version that has at least v2.1 of User Defined Language.
Just download the attached file & extract the .xml file with a .7z compatible program.
Then in Notepad++ >> 'Language' menu >> 'Define your language...' option >> click the 'import' button and point it to the .xml file.

Quirks:
Using Notepad++'s toggle comments command adds a '##' to indicate a comment. This hack was necessary to get colors for other highlighting working. Comments can also be indicated with the standard single #.

Some keywords/tags are missing from the list. Please PM any that are missing, and they will get added at some point.

Comments and questions welcome. There are some additional things I wanted to do with this, but they will have to wait for a future version of the Notepad++ UDL.

I will occasionally update this file with new keywords and such.

Screenshots:
Spoiler:
Attachments
Wesnoth (WML) 2017-07-14.7z
(9.71 KiB) Downloaded 22 times
Wesnoth (WML) 2017-04-16.7z
(9.65 KiB) Downloaded 50 times
Wesnoth (WML) 2017-01-14.7z
(9.5 KiB) Downloaded 37 times
Last edited by SigurdFireDragon on April 16th, 2017, 4:38 pm, edited 3 times in total.
User avatar
SigurdFireDragon
Developer
 
Posts: 318
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: Sigurd's WML Syntax Highlighting for Notepad++

Postby Nikitaw99 » October 2nd, 2016, 10:11 am

Seems interesting. I'll surely download this!
Hello world!
User avatar
Nikitaw99
 
Posts: 22
Joined: September 6th, 2016, 8:19 pm

Re: Sigurd's WML Syntax Highlighting for Notepad++

Postby Samonella » May 26th, 2017, 5:05 pm

I've been using this for quite a while and just want to say thanks, it's made writing wml much easier!
The last few months have been nothing but one big, painful reminder that TIMTLTW.

Creator of Armory Mod, The Rising Underworld, and Vengeance of a Drake: an RPG
Samonella
 
Posts: 281
Joined: January 8th, 2016, 5:41 pm
Location: USA

Re: Sigurd's WML Syntax Highlighting for Notepad++

Postby SigurdFireDragon » May 27th, 2017, 4:15 am

You're welcome :)
User avatar
SigurdFireDragon
Developer
 
Posts: 318
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: Sigurd's WML Syntax Highlighting for Notepad++

Postby Jarom » October 9th, 2017, 7:10 pm

Lot of good job done here, thank you, SigurdFireDragon. editor_name and help_topic_text are missing, but they are so rarely used that it's not a problem at all. I appreciate it even more, because I tried to do that myself and my list was always incomplete.
User avatar
Jarom
 
Posts: 62
Joined: January 4th, 2015, 8:23 pm

Re: Sigurd's WML Syntax Highlighting for Notepad++

Postby SigurdFireDragon » October 11th, 2017, 9:55 pm

Thanks, I'll be sure to add those on the next update
User avatar
SigurdFireDragon
Developer
 
Posts: 318
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA


Return to WML Workshop

Who is online

Users browsing this forum: No registered users and 3 guests