-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ability to print to html #1166
base: main
Are you sure you want to change the base?
ability to print to html #1166
Conversation
What does this do? How is this different from the existing printer? Do we really need to duplicate all of the code? |
@rwjblue I think this is think to disucss with core team, currently there is no idiomatic Main idea, is allow over developers import some print function, and get |
Example: input: <p {{action "activate"}} {{someting foo="bar"}}>Test</p> output: <span class="tag"><</span><span class="tag-name">p</span><span class="non-breaking-space"> </span><span class="curly">{{</span><span class="path">action</span><span class="non-breaking-space"> </span><span class="string">"activate"</span><span class="curly">}}</span><span class="non-breaking-space"> </span><span class="curly">{{</span><span class="path">someting</span><span class="non-breaking-space"> </span><span class="hash-key">foo</span><span class="equal">=</span><span class="string">"bar"</span><span class="curly">}}</span><span class="tag">></span><span class="text-node">Test</span><span class="tag"><</span><span class="tag">/</span><span class="tag-name">p</span><span class="tag">></span> and style: body {
font-family: monospace;
background-color: #3f3f3f;
color: #fefefe;
}
.path {
color: orange;
}
.string {
color: #65fb65;
}
.curly {
color: red;
}
.hash-key {
color: #8181ff;
font-weight: bold;
}
.tag-name {
color: purple;
}
.tag {
color: #9C27B0;
font-weight: bold;
}
.text-node {
color: #face8d;
} give: |
It'd be fantastic to have this. If not for generating hi-fi syntax highlighting, but for projects that happen to have a bit of the compiler tools in the browser and don't want to rely on buggy / incomplete highlightjs or prism definitions. Working with highlightjs is maddening, imo (from syntax definition pov) |
In neovim, tree-sitter is really good. It'd be cool to compare to 'the' glimmer parser when making editor specific highlighters though |
f12702e
to
f648d37
Compare
No description provided.