====== 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: npm install -g yo npm install -g generator-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): yo code * Installing **vsce** to share MQL4 extension on the extension marketplace: npm install -g vsce * 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"): vsce create-publisher nervtech ===== 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): ext install mq4 * The sources for this extension are available on [[https://github.com/roche-emmanuel/vscode_mql4_syntax|github]].