vscode-textmate
oniguruma
vscode-textmate | oniguruma | |
---|---|---|
5 | 2 | |
541 | 2,205 | |
1.7% | - | |
5.5 | 6.8 | |
4 months ago | 30 days ago | |
TypeScript | C | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vscode-textmate
-
Building a syntax highlighting extension for VS Code
Luckily, there is a project that has fitted my needs perfectly: vscode-grammar-test. Itβs a command line tool that builds on the VS Code regex engine and grammar file parser and allows to run unit tests directly against a given grammar file.
-
Dark mode with Shiki and Code Hike
Shiki does this because the underlying library vscode-textmate or vscode-oniguruma returns black if the value is not a valid color. This explains why Code Hike uses blackish color codes instead of variables. But what if we write a variable directly into the theme instead of the color code.
-
How to get font colors but not syntax highlighting for a file in custom language?
Thank you for the response! I feared that I might have to create a vscode extension for the language. I'm assuming I can use this json file to build textmate grammar for Stks ? Do you suggest any specific resources for learning textmate grammar and regex? I'm especially unfamiliar with regex. Thanks again
-
NEW VSCode extension "Blockman" to highlight nested code blocks
I see now. Thanks for the hint!
-
Show HN: Ray.so β Create beautiful images of your code
There are lots of different approaches you could take. For sourcecodeshots, I run it through VSCode's tokenizer (https://github.com/microsoft/vscode-textmate) and then use node-canvas to generate the image one line at a time.
It's a very imperative process and fairly slow on a cpu, but the nice thing is that I can run the same code in the browser to speed up development. The Rust project, https://github.com/Aloxaf/silicon, mentioned in another part of the comments is probably faster, but I didn't find it when I was searching for a solution.
oniguruma
-
Building a syntax highlighting extension for VS Code
As a ruby developer, I was happy to find that VS Code / TextMate grammar files use the same regular expression engine called Oniguruma as ruby itself. Thus, I could be sure that when trying my regular expressions in my favorite online regex tool, rubular.com, there would be no inconsistencies due to the engine inner workings.
-
Developer Diaries: How We Built a Better Browser-Based IDE with Monaco
However, parsing these files requires a C library called Oniguruma to parse and execute these files. Because this library does not run in a pure JavaScript environment β which was a requirement for Monaco historically due to browser support β Monaco ships out-of-the-box with a different grammar language.
What are some alternatives?
tree-sitter-vue - Vue grammar for tree-sitter
Onigmo - Onigmo is a regular expressions library forked from Oniguruma.
silicon - Create beautiful image of your source code.
RegEx101 - This repository is currently only used for issue tracking for www.regex101.com
carbonate - Github Action to format fenced code blocks in github issues as images. Originally created as part of DEV Github Actions hackathon: https://dev.to/callmekatootie/jazz-up-the-code-blocks-in-github-issues-52e6
Melon - A generic cross-platform C library that includes many commonly used components and frameworks, and a new scripting language interpreter. It currently supports C99 and Aspect-Oriented Programming (AOP).
usfm-grammar - An elegant USFM parser.
obs-studio - OBS Studio - Free and open source software for live streaming and screen recording
carbon - :black_heart: Create and share beautiful images of your source code
RegExtract - Clean & simple idiomatic C# RegEx-based line parser that emits strongly typed results.
vscode-oniguruma - Oniguruma Bindings for VS Code