Coder Social home page Coder Social logo

Please add HTML sample code. about tmtheme-editor HOT 7 CLOSED

aziz avatar aziz commented on September 18, 2024
Please add HTML sample code.

from tmtheme-editor.

Comments (7)

aziz avatar aziz commented on September 18, 2024

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.

farzher avatar farzher commented on September 18, 2024

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.

FichteFoll avatar FichteFoll commented on September 18, 2024

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.

aziz avatar aziz commented on September 18, 2024

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.

FichteFoll avatar FichteFoll commented on September 18, 2024

You mean "generating HTML" as in facelessuser/ExportHtml?

from tmtheme-editor.

aziz avatar aziz commented on September 18, 2024

yes, I was looking at ExportHtml

from tmtheme-editor.

aziz avatar aziz commented on September 18, 2024

HTML is added.

from tmtheme-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.