maniascript vscode extension update v1.3.2

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.23

Post by reaby »

Download
http://reaby.kapsi.fi/maniaplanet/vscod ... .2.23.vsix

ChangeLog
Fixed the extension, so it doesn't try to activate on other filetypes than xml and maniascript.
Changes to template string colorization: {{{ }}} inside XML doublequoted strings are parsed to maniascript expressions... see image below.
Also it finds out if you have xml tag, which doesn't end gracefully, the colors broke totally, fix is to add comment: // """>""", so the tag closes
Changed #Struct color to match dark+ (default) color scheme, which is recommended to be used.

Example image:
fix.jpg
fix.jpg (33.55 KiB) Viewed 5508 times
Last edited by reaby on 03 Feb 2020, 10:00, edited 1 time in total.
Darrek
Nadeo
Nadeo
Posts: 7
Joined: 24 Oct 2018, 11:43

Re: maniascript vscode extension update v1.2.23

Post by Darrek »

Hey thanks for the update ! No download link ?
User avatar
index
Translator
Translator
Posts: 179
Joined: 17 Jun 2010, 20:59
Contact:

Re: maniascript vscode extension update v1.2.23

Post by index »

Darrek wrote: 03 Feb 2020, 09:17 Hey thanks for the update ! No download link ?
Following the previous file name scheme i guess

http://reaby.kapsi.fi/maniaplanet/vscod ... .2.23.vsix

Kind regards!
Image iNDEX'''
reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.23

Post by reaby »

Oh, my bad, I edited the first message of the topic with the link first and forgot to add the download link to announcement message.
Let me edit the announcement message as well :)
reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.24

Post by reaby »

Download
http://reaby.kapsi.fi/maniaplanet/vscod ... .2.24.vsix

Changelog
Finally found time to fix maniascript in a *.xml files.
So now you have same support as well in a manialink .xml files as .Script.txt files, enjoy :)
reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.25

Post by reaby »

Download
http://reaby.kapsi.fi/maniaplanet/vscod ... .2.25.vsix

ChangeLog
adds support for jinja2!!
Needs following support extension to activate:

Code: Select all

Better Jinja
Just change the template language at jinja-html, you get instant support for maniascript and jinja2!!

Have fun
reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.25

Post by reaby »

Actually jinja2 and twig are quite close in syntax, so if you use twig as template-engine you propably can just swap the language to jinja-html at the
toolbar (bottom right) :)
reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.26

Post by reaby »

Final maniaplanet version of the extension
http://reaby.kapsi.fi/maniaplanet/vscod ... .2.26.vsix

ChangeLog
corrected/fixed OR-operator "||" color highlighting on some themes.
Last edited by reaby on 12 Jul 2020, 14:08, edited 2 times in total.
reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.3.0

Post by reaby »

TRACKMANIA extension for vscode
* can't parse external doc.h with maniaplanet format.
* can be used with maniaplanet if you don't use external doc.h.
http://reaby.kapsi.fi/trackmania/vscode ... 1.3.0.vsix

Changelog
* rewrite doc.h parser to work with the new filestructure
* i changed the jinja2 templates from html to xml, so for this on use jinja-xml
* fixes to struct colorings
Last edited by reaby on 13 Jul 2020, 12:39, edited 1 time in total.
reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.3.1

Post by reaby »

Download
http://reaby.kapsi.fi/trackmania/vscode ... 1.3.1.vsix

Changelog
Added color previews for xml files
colors.PNG
colors.PNG (11.55 KiB) Viewed 4920 times

Manialink autocomplete and validation
I finally figured out the most easiest possible way to get autocomplete and validation working for manialink xml.
just install XML extension for vscode and use this template:

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-model href="http://reaby.kapsi.fi/trackmania/manialink_v3.xsd" ?>
<manialink version="3">
	<-- your manialink content here -->
</manialink>
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 0 guests