maniascript vscode extension update v1.3.2

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

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

Re: maniascript vscode extension update v1.2.23

Post by reaby » 03 Feb 2020, 02:51

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 898 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 » 03 Feb 2020, 09:17

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 » 03 Feb 2020, 09:24

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: 1028
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.23

Post by reaby » 03 Feb 2020, 09:59

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: 1028
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.24

Post by reaby » 22 Mar 2020, 21:36

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: 1028
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.25

Post by reaby » 07 Apr 2020, 18:46

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: 1028
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.25

Post by reaby » 07 Apr 2020, 23:55

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: 1028
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.2.26

Post by reaby » 18 Jun 2020, 22:11

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: 1028
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.3.0

Post by reaby » 12 Jul 2020, 14:07

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: 1028
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.3.1

Post by reaby » 13 Jul 2020, 12:38

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 310 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 3 guests