Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== MQL4 Syntax Highlighting Extension for VisualStudio Code ====== ===== Project description ===== * While working on the [[public:projects:trend_stop:trend_stop|MT4 TrendStop Indicator]] project I realized that there were currently no syntax highlighting extension for the MQL languages in Visual Studio Code: What a shame! It's now time to fix this... ;-) * So I checked [[https://code.visualstudio.com/Docs/customization/colorizer|the indications]] on how to build such an extension, and then started to work on this syntax highlighting project. * Installed yeoman and code generator globally: <code>npm install -g yo npm install -g generator-code </code> * Additional infos on using the code generator: https://code.visualstudio.com/docs/tools/yocode * Initial MQL4 language file imported from: https://github.com/currencysecrets/mql4/blob/master/Syntaxes/MQL4.tmLanguage ([[https://raw.githubusercontent.com/currencysecrets/mql4/master/Syntaxes/MQL4.tmLanguage|raw file here]]) * Init of the project with code generator (run from PowerShell in project folder): <code>yo code</code> * Installing **vsce** to share MQL4 extension on the extension marketplace: <code>npm install -g vsce</code> * Created **Personal Access Token** as indicated on [[https://code.visualstudio.com/docs/tools/vscecli#_publishers-and-personal-access-tokens|this page]] from this page: https://nervtech.visualstudio.com/_details/security/tokens * Created publisher **nervtech** (with email address "roche point emmanuel at gmail point com"): <code>vsce create-publisher nervtech</code> ===== Skills & Techs ===== * **npm** * **vsce** ===== Images ===== {{ public:projects:vscode_mq4:mql5_view.png?800 }} ===== Sources ===== * The extension is available on the [[https://marketplace.visualstudio.com/items?itemName=nervtech.mq4|Visual Studio Code marketplace]] or can be installed directly in Visual Studio Code with the command (use Ctrl+P to enter): <code>ext install mq4</code> * The sources for this extension are available on [[https://github.com/roche-emmanuel/vscode_mql4_syntax|github]]. public/projects/vscode_mql4_syntax/vscode_mql4_syntax.txt Last modified: 2020/07/10 12:11by 127.0.0.1