WML Syntax Highlighting for various editors index

The place to post your WML questions and answers.

Moderator: Forum Moderators

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.
Post Reply
User avatar
Forum Moderators Team
Battle for Wesnoth
Location: #wesnoth @ irc.freenode.net
Contact:

WML Syntax Highlighting for various editors index

Post by Forum Moderators Team »

Here you can find configuration files to enable WML syntax highlighting for various text editors :
  • Gedit (and other Gnome based editors): Has full WML support and partial inline lua support.
    wml.lang goes in /usr/share/gtksourceview-3.0/language-specs.
    cobalt-wml.xml goes in /usr/share/gtksourceview-3.0/styles.
    screenshots:
    download:
  • Notepad++: viewtopic.php?f=21&t=44392
  • Visual Studio Code: viewtopic.php?f=21&t=47476
Last edited by Noyga on October 9th, 2007, 5:39 pm, edited 4 times in total.
User avatar
lipk
Developer
Posts: 637
Joined: July 18th, 2011, 1:42 pm

Re: WML Syntax Highlighting for various editors index

Post by lipk »

Since the gedit stuff is pretty much outdated and won't work anymore, I made a new one for gtksourceview 3. Extract it into /home/you/.local/share/gtksourceview-3.0/language-specs/, and let me know if something doesn't work.
edit: I've already found something broken. I should really test my stuff more carefully before sharing. But it's ok now.
Attachments
wml.lang.gz
(1.38 KiB) Downloaded 903 times
User avatar
FallenPhoenix
Posts: 42
Joined: September 30th, 2011, 5:20 pm
Location: Russia
Contact:

Re: WML Syntax Highlighting for various editors index

Post by FallenPhoenix »

Here is my attempt to write syntax file for AkelPad, another good editor for Windows, and my edition of Notepad++ file.
Attachments
AkelPad - WesnothWML.7z
(2.3 KiB) Downloaded 784 times
NotePad++ - WesnothWML.7z
(3.54 KiB) Downloaded 751 times
Independent translator. // Sorry for my English :)
Моя версия перевода [url=http://forum.wesnothlife.ru/index.php?topic=1141.0]тут[/url].
User avatar
Pentarctagon
Project Manager
Posts: 4574
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: WML Syntax Highlighting for various editors index

Post by Pentarctagon »

I also have a gedit WML syntax highlighter here.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
SigurdFireDragon
Developer
Posts: 501
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: WML Syntax Highlighting for various editors index

Post by SigurdFireDragon »

Here is another Notepad++ syntax highlighter. viewtopic.php?f=21&t=44392
Maintainer of Wings of Valor
My Add-ons: Random Campaign, Custom Campaign, Ultimate Random Maps, Era of Legends, Gui Debug Tools
Erfworld: The comic that lead me to find Wesnoth.
User avatar
Bitron
Developer
Posts: 452
Joined: October 19th, 2015, 9:23 am
Location: Germany

Re: WML Syntax Highlighting for various editors index

Post by Bitron »

I experimented a little with syntax highlightning in Visual Studio Code for WML. It's not perfect, but still helpful, I guess... have fun with it!
Here is the Link: WML Syntax Highlighter for VS Code
Shiki
Developer
Posts: 312
Joined: July 13th, 2015, 9:53 pm
Location: Germany

Re: WML Syntax Highlighting for various editors index

Post by Shiki »

I also experimented with syntax highlighting, for Sublime Text 3. There are some corner cases where it doesn't do well, but it's good enough that I use it for half a year now.

A screenshot and other information is on the page for Sublime's Add-ons.

To install it:
1) Add the "package control" package in Sublime Text. For that, got to
Menubar -> Tools -> Install Package Control
2) This can then be accessed from Menubar-> Tools -> Command Pallette;
"Package Control: Install Package" is the command, after that, search for WML or Wesnoth.
Try out the dark board theme.
Post Reply