Comments (7)
I was trying to build a real tmLanguage parser to be able to parse all languages and highlight them, but I come to realize that it's close to impossible due to javascript Regex limitations.
The second try which will be available in the next release is to parse all files locally in sublime and put the generated HTML output into the app.
from tmtheme-editor.
That's fair enough, I thought maybe you didn't even try because you hate HTML or something.
The tool is awesome btw. I'm working on a theme that changes color depending on what language you're currently in, which is where I'm running into problems.
from tmtheme-editor.
I'd've suggested to try Ajax and parsing the stuff on the server but apparently you are using Node.js so yet another JavaScript limitation. Well, I'm not even sure how traffic would go up but that's the only way I can imagine.
Otherwise you could use flash/java for that, even though that doesn't seem to be the "right" choice here.
from tmtheme-editor.
My second idea after getting disappointed about writing the whole parser in javascript was to compile oniguruma to javascript using emscripten, which wasn't very successful. I would be glad to get some help if you know a bit about compiling stuff with emscripten.
Anyway for now I'm looking at Sublime API to see how I can generate HTML based on code annotated with scopes.
from tmtheme-editor.
You mean "generating HTML" as in facelessuser/ExportHtml?
from tmtheme-editor.
yes, I was looking at ExportHtml
from tmtheme-editor.
HTML is added.
from tmtheme-editor.
Related Issues (20)
- Dead links
- Modified Theme can convert to Atom format
- [Request] Please add XML preview
- [Request] Make TABs configurable
- Monokai Extended Bright broken
- 语言有点少,可否加入SQL
- Atari ST
- New Button
- How to change the color of builtin functions in R?
- [Request] Please add Julia language preview code coloring.
- How to use the them in notepad ++
- Some theme names not the same in editor view?
- Theme: Nord
- "Some stats" lost my edits
- Two mistakes in R syntax highlighting
- app not working? HOT 8
- App not working - Possible local running instructions? HOT 1
- Website not working HOT 1
- Attempting to revive the problems encountered in your project, please seek guidance from the experts
- how to edit a specific color in a theme
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 tmtheme-editor.