Comments (5)
...using a URL like this one: https://github.com/microsoft/vscode/blob/main/extensions/cpp/syntaxes/cpp.tmLanguage.json
from lf-lang.github.io.
Couldn't we just
wget
orcurl
those files?
Oh, I like that idea -- thanks! The way I can imagine implementing that would be to just get the text in the highlighting script, without needing to save anything to files. I'll go ahead and try to do that.
from lf-lang.github.io.
One way to do this is to include vscode
as a submodule, and to reach into that repo for the desired tmlanguage.json
file. The problem is that a deep clone of the whole repo and its history consumes 496 MiB!
We could find ways to manage that. For example, we could try to do only shallow clones, or we could keep the thing around and just tolerate it. We could also just copy-paste the tmlanguage.json
files that we need, and update them manually as their maintainers work on them. As long as we can somehow track copies of those files, it shouldn't be a problem to highlight any code we want, including bash scripts.
I'm open to any opinions...
from lf-lang.github.io.
We could also just copy-paste the
tmlanguage.json
files that we need
Would it be possible to factor out the tmlanguage.json
file to a third repository and have that as a submodule in the vscode and website repos?
from lf-lang.github.io.
If I understand correctly, the respective tmlanguage.json
files are part of the vscode
repository (not vscode-lingua-franca
). Couldn't we just wget
or curl
those files?
from lf-lang.github.io.
Related Issues (20)
- 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
- Compilation Error for Decentralized Coordination
- Check validity of target property descriptions HOT 2
- C++ tracing description is outdated
- Mutable keyword is described for all targets, although it is only supported in C
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.