Skip to content
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

Improve code highlighting #156

Open
ghaiklor opened this issue Jun 23, 2020 · 0 comments
Open

Improve code highlighting #156

ghaiklor opened this issue Jun 23, 2020 · 0 comments
Assignees
Labels
type: enhancement Overall enhancement or a new feature

Comments

@ghaiklor
Copy link
Owner

Shape for the Code supports only JavaScript at the moment. Makes sense to think about how can we improve it to support more languages and still highlight it through our custom renderer.

Maybe, we could use highlight.js, but it does not seem like its parsers returns annotated AST we could use to translate it to our renderer calls API. It returns an HTML with already annotated elements.

So maybe... we could parse an HTML then and extract annotations from there and use it to translate into renderer calls API.

@ghaiklor ghaiklor added the type: enhancement Overall enhancement or a new feature label Jun 23, 2020
@ghaiklor ghaiklor self-assigned this Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Overall enhancement or a new feature
Projects
None yet
Development

No branches or pull requests

1 participant