News for hackers. Stuff that matters.
Re:Show HN: Pure CSS/HTML C# syntax highlighting without Jav... by nextaccountic on Monday January 17, 2022 @12:13PM (#29968788)
You mean this page doesn't run javascript when you click the button? How is this possible?

edit: it submits a form, then reloads to a page with the code highlighted?

Re:Show HN: Pure CSS/HTML C# syntax highlighting without Jav... by retpoline on Monday January 17, 2022 @12:19PM (#29968887)
no no, unfortunely demo page still uses a few lines of js just to send request and display it (inserts that html/css into the page)

but the result is just css/html that you can copy/paste anywhere and you'll have the code with syntax colouring without js required

if I didn't have some troubles with newlines then there'd be form for javascript disabled users today too

Re:Show HN: Pure CSS/HTML C# syntax highlighting without Jav... by zepolen on Monday January 17, 2022 @12:48PM (#29969229)
It could also post to an iframe