Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Syntax highlighter for Visual Studio Code  (Read 185 times)

Finnfinn

  • Escaped Lunatic
    • View Profile
Syntax highlighter for Visual Studio Code
« on: September 21, 2018, 04:08:07 am »

Howdy fellow overseers,

when I decided to make baby steps at modding the other day I only found a highlighter for Notepad++, which I'm just not a fan of when developing.
Since I have the attention span of a !!Squirrel!!, I proceeded to write a highlighter for VSCode.

It's incomplete and includes some insane regular expressions, but the highlighting really helps with readability, so I thought I'd share.



Installation:

Usage:
Since raws have the .txt extension, you need to manually pick the language via the menu in the status bar, bottom right. Or you could associate .txt with the language.

Hope this helps some modders. If you wish to contribute, there's a project on Bitbucket:
https://bitbucket.org/finnfinn/vscode-dfraw/src/master/

Happy hacking!
« Last Edit: September 25, 2018, 02:19:27 am by Finnfinn »
Logged
There's no place like !!home!!.