Is there a decent plug-in for Visual Studio Code t...
# advancedpdf
t
Is there a decent plug-in for Visual Studio Code that has good syntax highlighting for Advanced PDF/HTML Templates by any chance? The freemarker syntax really throws off the default highlighting.
d
are you already using this extension?
t
No I am not! Will check it out, thank you! 🙂
Is there something special I need to do in order to enable it on NetSuite's template files since they use the .xml extension instead of .ftl?
d
haven't really bothered with that myself. I just
ctrl+shift+P
"change language mode" each time. if you're editing templates within SDF projects, you could probably add
*.template.xml
as a freemarker language extension type
t
Your first solution seems sufficient to me for now—lovely, that works! 😄 Just for completeness, would it be easy to describe how to add
*.template.xml
as a freemarker language extension type in Visual Studio Code? I'm not familiar with messing with this type of setting in VS Code at all so I would love just a little more guidance to understand what this means 🙏 then I can educate myself on the specifics
don't think you can use the "configure file association for ..." option in the "change language mode" menu, as vscode will likely just see the extension as being
.xml
rather than
.template.xml
so you'll have to follow that top answer and edit your vscode's
settings.json
file manually
👍 1
t
Got it! Thank you 🙂