VS Code - WML Syntax highlighting
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.
VS Code - WML Syntax highlighting
This is a simple WML syntax highlighter for Microsofts Visual Studio Code editor.
You can find both syntax support and color theme in the Visual Studio Marketplace or direclty in the editor's plugin tab. Just search for "wml" and you will find both syntax support and color theme. :)
You can find both syntax support and color theme in the Visual Studio Marketplace or direclty in the editor's plugin tab. Just search for "wml" and you will find both syntax support and color theme. :)
Developer of Project Haldric
Add-ons: Millennium Era, Vision of a Shaman, A New Home
Art: Bitron's Art Thread
Tools: WML Syntax Highlighter for VS Code
Add-ons: Millennium Era, Vision of a Shaman, A New Home
Art: Bitron's Art Thread
Tools: WML Syntax Highlighter for VS Code
Re: VS Code - WML Syntax highlightning
I love you, thanks for making this.
(yes I came back from the dead just to post this)
(yes I came back from the dead just to post this)
Formerly known as the creator of Era of Chaos and maintainer of The Aragwaithi and the Era of Myths.
Re: VS Code - WML Syntax highlightning
I'm glad to hear it is appreciated and you are welcome.
Feel free to tell if there is anything missing or you would like see additional features. :)
Feel free to tell if there is anything missing or you would like see additional features. :)
Developer of Project Haldric
Add-ons: Millennium Era, Vision of a Shaman, A New Home
Art: Bitron's Art Thread
Tools: WML Syntax Highlighter for VS Code
Add-ons: Millennium Era, Vision of a Shaman, A New Home
Art: Bitron's Art Thread
Tools: WML Syntax Highlighter for VS Code
Re: VS Code - WML Syntax highlightning
I am happy to announce that I somehow managed to register both extentions to the visual studio marketplace!
You can download them directly from there now, getting updates quicker and such. Woho!
You can download them directly from there now, getting updates quicker and such. Woho!
Developer of Project Haldric
Add-ons: Millennium Era, Vision of a Shaman, A New Home
Art: Bitron's Art Thread
Tools: WML Syntax Highlighter for VS Code
Add-ons: Millennium Era, Vision of a Shaman, A New Home
Art: Bitron's Art Thread
Tools: WML Syntax Highlighter for VS Code
-
- Inactive Developer
- Posts: 503
- Joined: April 24th, 2016, 4:18 pm
Re: VS Code - WML Syntax highlightning
Is it possible to add an icon? I use vscode-icons and, of course, .wml files show as the default 'blank page of paper' icon. Maybe a tiny copy of the game logo?
Nice. The .cfg files also are recognized.
I don't do WML a lot these days, but it's nice to have when I do.
Nice. The .cfg files also are recognized.
I don't do WML a lot these days, but it's nice to have when I do.
I forked real life and now I'm getting merge conflicts.
Re: VS Code - WML Syntax highlightning
Unfortunately it does not seem possible now to add an icon for a custom language. At least I haven't found a way yet.
Though, I'll look out for that in future. I guess I'd use wesnoth' favicon.
Though, I'll look out for that in future. I guess I'd use wesnoth' favicon.
Developer of Project Haldric
Add-ons: Millennium Era, Vision of a Shaman, A New Home
Art: Bitron's Art Thread
Tools: WML Syntax Highlighter for VS Code
Add-ons: Millennium Era, Vision of a Shaman, A New Home
Art: Bitron's Art Thread
Tools: WML Syntax Highlighter for VS Code
-
- Inactive Developer
- Posts: 503
- Joined: April 24th, 2016, 4:18 pm
Re: VS Code - WML Syntax highlightning
I have a feeling if you submitted a PR with one to the icons project it'd be accepted. 'cfg' might be too common but 'wml' surely is unusual enough for them to consider adding it.
I forked real life and now I'm getting merge conflicts.
- Celtic_Minstrel
- Developer
- Posts: 2343
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: VS Code - WML Syntax highlightning
Small bug: comments aren't highlighted as comments unless there's a space after the
#
.Re: VS Code - WML Syntax highlightning
That was actually intended in the beginning to force myself a little to use this convention. I hadn't thought about sharing the addon with others at this point. I can change it though, if you want.
EDIT: Fixed
EDIT: Fixed
Developer of Project Haldric
Add-ons: Millennium Era, Vision of a Shaman, A New Home
Art: Bitron's Art Thread
Tools: WML Syntax Highlighter for VS Code
Add-ons: Millennium Era, Vision of a Shaman, A New Home
Art: Bitron's Art Thread
Tools: WML Syntax Highlighter for VS Code
- Celtic_Minstrel
- Developer
- Posts: 2343
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: VS Code - WML Syntax highlightning
I've noticed that, when coding in Lua in VS Code, it automatically de-indents when I type "end". Is it possible to do this for WML when I type "[/"? I'm not sure if that's in scope for a syntax hiliter, but I figure it can't hurt to ask.
Re: VS Code - WML Syntax highlightning
I had a look into it and it was fairly simple to implement, so I kicked out version 1.0.3 with that change. Now it automatically indents after an opening tag and it will automatically deindent closing tags like this:
Code: Select all
[tag]
---->
<----[/tag]
Developer of Project Haldric
Add-ons: Millennium Era, Vision of a Shaman, A New Home
Art: Bitron's Art Thread
Tools: WML Syntax Highlighter for VS Code
Add-ons: Millennium Era, Vision of a Shaman, A New Home
Art: Bitron's Art Thread
Tools: WML Syntax Highlighter for VS Code
- Celtic_Minstrel
- Developer
- Posts: 2343
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: VS Code - WML Syntax highlightning
Where do I get v1.0.3? I don't see it in the opening post?
Re: VS Code - WML Syntax highlightning
The extension is available on the VSCode marketplace: https://marketplace.visualstudio.com/it ... Bitron.wml (the related color theme is here: https://marketplace.visualstudio.com/it ... noth-theme). Source code is at https://github.com/Byteron/wml.
- Celtic_Minstrel
- Developer
- Posts: 2343
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: VS Code - WML Syntax highlightning
Ah, I missed the part where it was added to the marketplace. The indenting thing is nice, thanks!
Re: VS Code - WML Syntax highlightning
Thank you for the quick help, warmaven.
I updated the initial post to prevent confusions in future.
I updated the initial post to prevent confusions in future.
Developer of Project Haldric
Add-ons: Millennium Era, Vision of a Shaman, A New Home
Art: Bitron's Art Thread
Tools: WML Syntax Highlighter for VS Code
Add-ons: Millennium Era, Vision of a Shaman, A New Home
Art: Bitron's Art Thread
Tools: WML Syntax Highlighter for VS Code