Comments (5)
Is there a way to leverage artifacts of the actual VS Code extension, like its TextMate grammar?
In the spirit of staying DRY, maybe we could use the grammar file interpreter that is used in VS Code? That, combined with the non-declarative highlighting code, should be able to precisely match the highlight experience for VS Code users.
There are some problems with this. Apparently, "cross - grammar injections are currently not supported," but we need cross-grammar injections to highlight {= =}
code blocks. I would be willing to help iron out these wrinkles so that we do not have to maintain multiple highlighters at once.
from lf-lang.github.io.
The syntax highlighting in VS Code is a lot more advanced than what is possible with prismjs, which is really just based on regular expression matching. Is there a way to leverage artifacts of the actual VS Code extension, like its TextMate grammar?
from lf-lang.github.io.
I found this, but it says it's not ready for production use.
from lf-lang.github.io.
So, yeah, maybe Prism is the way to go for now? Let me also tag @petervdonovan in case he has ideas about this.
from lf-lang.github.io.
This should be addressed by #11.
from lf-lang.github.io.
Related Issues (20)
- Add hover to home button (logo)
- Enable versioning HOT 1
- Fix styling issue with slider on media with narrow width
- Remove stale branches HOT 1
- Discuss if we need previews for PRs and if so where HOT 1
- Bundle only target languages and lf for shikiji HOT 1
- Move markdown to `lingua-franca` repo
- Fix TODOs/FIXMEs and missing code examples
- Run all Markdowns through Prettier
- Previews not created properly HOT 2
- Link overlays for featured publications no longer shown
- Add link to Open Collective
- Add link to YouTube
- README file is a bit thin HOT 1
- Change syntax highlighter back to shiki
- Search not fully working HOT 2
- Clicking on the version drop-down menu in the handbook returns to the introduction HOT 10
- Ensure that all section headers are generic and not target specific HOT 3
- Zephyr docs minor mistake HOT 1
- Many links seem to be broken HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lf-lang.github.io.