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 #105

Closed
ErikSchierboom opened this issue May 18, 2021 · 8 comments · Fixed by #241
Closed

Add highlightjs support #105

ErikSchierboom opened this issue May 18, 2021 · 8 comments · Fixed by #241
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

If I can help, let me know. Looks like it should be an easy enough language to highlight.

@ErikSchierboom
Copy link
Member Author

That would be great. I'm fairly sure this track is unmaintained.

@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
@ErikSchierboom
Copy link
Member Author

@joshgoebel Are you still interested in looking into this? We'll have Ballerina in "Mind Shifting May" next month, as syntax highlighting would be great!

@joshgoebel
Copy link

I don't have time build it out myself but if someone else was interested and just needs a little help or a few pointers I'd be happy to help.

@BNAndras
Copy link
Member

I was poking around the highlightjs repo since I'm about to start working on a Pyret grammar and noticed Ballerina support was added last month in highlightjs/highlight.js#3852. Does this mean we can include syntax highlighting for the Ballerina track?

@joshgoebel
Copy link

@ErikSchierboom There you go, someone else went and built it for ya. :-)

https://github.com/highlightjs/highlightjs-ballerina

@ErikSchierboom
Copy link
Member Author

That's nice of them! :D

@ErikSchierboom
Copy link
Member Author

ErikSchierboom commented Oct 25, 2023

It's working:
image

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

Successfully merging a pull request may close this issue.

3 participants