inkle / ink

inkle's open source scripting language for writing interactive narrative.
http://www.inklestudios.com/ink
MIT License
4.07k stars 488 forks source link

need web code highlight #655

Open vicevolf opened 3 years ago

vicevolf commented 3 years ago

Is there any way to make the ink code highlight correctly on the web? Similar to highlight.js

https://highlightjs.org/

SirMetathyst commented 3 years ago

You could always write a plugin/extension for that: https://github.com/highlightjs/highlight.js/tree/main/src/languages

vicevolf commented 3 years ago

You could always write a plugin/extension for that: https://github.com/highlightjs/highlight.js/tree/main/src/languages

😥 I'm looking for help with that.

SirMetathyst commented 3 years ago

I'd put one together for you but I'm still learning javascript. I probably know enough js to write one but not enough to take the time out for someone else and write it. This might be a great opportunity for you to learn Javascript. I'm good at Go but suck at js, I needed a frontend for something so I'm learning js; Javascript as a language sucks (old js at least)

vicevolf commented 3 years ago

I'd put one together for you but I'm still learning javascript. I probably know enough js to write one but not enough to take the time out for someone else and write it. This might be a great opportunity for you to learn Javascript. I'm good at Go but suck at js, I needed a frontend for something so I'm learning js; Javascript as a language sucks (old js at least)

I am also learning into js.

I wrote some document web pages about ink, but the code block highlighting is not right, I can only use plain text.

This is not good for the popularity of ink.

SirMetathyst commented 3 years ago

Take a screenshot using Inky?

vicevolf commented 3 years ago

Take a screenshot using Inky?

In fact, I'm translating the official documents of ink into my native language. The screenshots may not be good. But now I've added a lot of comments and inky demo as a supplement.

yonkeltron commented 2 years ago

Just a clarifying question: is this about highlighting Ink on explanatory web pages OR is this about being able to include source code in Ink documents and have the rendered output include syntax highlighting?