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

Add highlightjs support #41

Open
ErikSchierboom opened this issue May 18, 2021 · 3 comments
Open

Add highlightjs support #41

ErikSchierboom opened this issue May 18, 2021 · 3 comments
Labels
x:action/create Work on something from scratch x:knowledge/none No existing Exercism knowledge required x:size/large Large amount of work x:type/coding Write code that is not student-facing content (e.g. test-runners, generators, but not exercises)

Comments

@ErikSchierboom
Copy link
Member

Exercism uses highlightjs for syntax highlighting. Unfortunately, there is no support for this track at the moment (see the supported languages).

To properly support syntax highlighting for this track, an official grammar should be created at https://github.com/highlightjs/highlight.js/tree/main/src/languages. Note that this grammar could be relatively minimal at first and can be expanded upon at a later time.

@joshgoebel has initimate knowledge of the code base and has graciously offered to be available for any questions.

See exercism/v3-launch#36

@joshgoebel
Copy link

Let me know if I can help.

We could probably use lisp or clojure until there is a Shen grammar. Perhaps that's enough depending on how lisp-like Shen is...

@jaccarmac
Copy link
Contributor

Depending on how type-heavy the code is, I think Clojure highlighting gives decent results. Rendering a file from the Shen source distribution in each mode and seeing how it looks would be a good next step.

@ErikSchierboom
Copy link
Member Author

PR created: #46

@ErikSchierboom ErikSchierboom added x:action/create Work on something from scratch x:knowledge/none No existing Exercism knowledge required x:size/large Large amount of work x:type/coding Write code that is not student-facing content (e.g. test-runners, generators, but not exercises) labels Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:action/create Work on something from scratch x:knowledge/none No existing Exercism knowledge required x:size/large Large amount of work x:type/coding Write code that is not student-facing content (e.g. test-runners, generators, but not exercises)
Projects
None yet
Development

No branches or pull requests

3 participants