ink icon indicating copy to clipboard operation
ink copied to clipboard

need web code highlight

Open vicevolf opened this issue 4 years ago • 7 comments

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

https://highlightjs.org/

vicevolf avatar Mar 21 '21 05:03 vicevolf

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

SirMetathyst avatar Apr 20 '21 13:04 SirMetathyst

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.

vicevolf avatar Apr 20 '21 13:04 vicevolf

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)

SirMetathyst avatar Apr 20 '21 14:04 SirMetathyst

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.

vicevolf avatar Apr 21 '21 04:04 vicevolf

Take a screenshot using Inky?

SirMetathyst avatar Apr 21 '21 12:04 SirMetathyst

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.

vicevolf avatar Apr 22 '21 14:04 vicevolf

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?

yonkeltron avatar Jan 11 '22 18:01 yonkeltron