Perhaps wait for a response from the maintainer, the issue you linked is fairly new.Īt least conceptually there shouldn't be a reason why it couldn't achieve the same syntax highlighting VSCode does, since it uses the same regex flavour. I have no idea, I expect this is simply a bug in the implementation. onigasm itself relies on WebAssembly.Īs to why syntax highlighting doesn't always work as expected with monaco-textmate. Visual Studio Code has a greater number of built-in features than Atom provides through extensions and third-party applications. Monaco-textmate relies on onigasm package to provide oniguruma regex engine in browsers. Visual Studio Code and Atom, both Electron-based applications give a good user experience but when it comes to comparison, Visual Studio Code leaps ahead. VSCode can have native dependencies because it doesn't run in a browser environment.Īccording to monaco-textmate's readme, it is actually heavily based on vscode-textmate:ĩ9% of the code in this repository is extracted straight from vscode-textmateĪnd it does use the WASM approach mentioned earlier: All you have to do is click on the links to visit Visual Studio Marketplace and hit the ‘Install’ button. We know that developers like you have different ways to focus, learn, and code. Best Visual Studio Code Themes to Try in 2022 We’ve linked all the themes featured in this article. You can preview and switch through these themes by going through File > Preferences > Color Theme (Code > Preferences > Color Theme on Mac) in menu. VSCode itself uses vscode-textmate for its TMLanguage handling, which has the Oniguruma library as a native dependency. New flexible theming capabilities to make the environment yours Syncing capabilities so that you can be productive anywhere Tools that accommodate your habits and preferences Your IDE should be uniquely yours. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications. It also mentions the possibiliy of perhaps eventually compiling Oniguruma to WebAssembly to work around this. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. All of this is explained in detail in the "Why doesn't the editor support TextMate grammars?" section of Monaco's FAQ. Monaco however is designed to run in the browser, and the JavaScript regex engine available there is not compatible with Oniguruma. TextMate grammars depend on a particular regex implementation / library called Oniguruma, which is implemented in C.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |