#highlightjs — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #highlightjs, aggregated by home.social.
-
So I just wasted a morning trying to debug why the Highlight.js syntax highlighting in Kitten suddenly began to fail only to realise that @1password is stripping the hljs- prefixes from the class names.
You can see this for yourself if you have the 1password extension installed at:
https://kitten.small-web.org/#the-ubiquitous-counter-example
Load that page with 1password enabled in your browser and you will see that the syntax highlighting doesn’t work and the hljs- prefixes have been stripped.
Disable the 1password extension and load the page again and you will see syntax highlighting working properly.
WTF?!
-
So I just wasted a morning trying to debug why the Highlight.js syntax highlighting in Kitten suddenly began to fail only to realise that @1password is stripping the hljs- prefixes from the class names.
You can see this for yourself if you have the 1password extension installed at:
https://kitten.small-web.org/#the-ubiquitous-counter-example
Load that page with 1password enabled in your browser and you will see that the syntax highlighting doesn’t work and the hljs- prefixes have been stripped.
Disable the 1password extension and load the page again and you will see syntax highlighting working properly.
WTF?!
-
So I just wasted a morning trying to debug why the Highlight.js syntax highlighting in Kitten suddenly began to fail only to realise that @1password is stripping the hljs- prefixes from the class names.
You can see this for yourself if you have the 1password extension installed at:
https://kitten.small-web.org/#the-ubiquitous-counter-example
Load that page with 1password enabled in your browser and you will see that the syntax highlighting doesn’t work and the hljs- prefixes have been stripped.
Disable the 1password extension and load the page again and you will see syntax highlighting working properly.
WTF?!
-
So I just wasted a morning trying to debug why the Highlight.js syntax highlighting in Kitten suddenly began to fail only to realise that @1password is stripping the hljs- prefixes from the class names.
You can see this for yourself if you have the 1password extension installed at:
https://kitten.small-web.org/#the-ubiquitous-counter-example
Load that page with 1password enabled in your browser and you will see that the syntax highlighting doesn’t work and the hljs- prefixes have been stripped.
Disable the 1password extension and load the page again and you will see syntax highlighting working properly.
WTF?!
-
So I just wasted a morning trying to debug why the Highlight.js syntax highlighting in Kitten suddenly began to fail only to realise that @1password is stripping the hljs- prefixes from the class names.
You can see this for yourself if you have the 1password extension installed at:
https://kitten.small-web.org/#the-ubiquitous-counter-example
Load that page with 1password enabled in your browser and you will see that the syntax highlighting doesn’t work and the hljs- prefixes have been stripped.
Disable the 1password extension and load the page again and you will see syntax highlighting working properly.
WTF?!
-
If you ever wanted syntax highlighting support for #Rego while using highlight.js.. now you can: https://github.com/StyraInc/highlightjs-rego
-
If you ever wanted syntax highlighting support for #Rego while using highlight.js.. now you can: https://github.com/StyraInc/highlightjs-rego
-
If you ever wanted syntax highlighting support for #Rego while using highlight.js.. now you can: https://github.com/StyraInc/highlightjs-rego
-
If you ever wanted syntax highlighting support for #Rego while using highlight.js.. now you can: https://github.com/StyraInc/highlightjs-rego
-
If you ever wanted syntax highlighting support for #Rego while using highlight.js.. now you can: https://github.com/StyraInc/highlightjs-rego
-
New article:
A Copy Button For Highlight.js
https://www.mostlylucid.net/blog/acopybuttonforhightlightjs
#aspnetcore #highlightjs -
New article:
A Copy Button For Highlight.js
https://www.mostlylucid.net/blog/acopybuttonforhightlightjs
#aspnetcore #highlightjs -
New article:
A Copy Button For Highlight.js
https://www.mostlylucid.net/blog/acopybuttonforhightlightjs
#aspnetcore #highlightjs -
New article:
A Copy Button For Highlight.js
https://www.mostlylucid.net/blog/acopybuttonforhightlightjs
#aspnetcore #highlightjs -
New article:
A Copy Button For Highlight.js
https://www.mostlylucid.net/blog/acopybuttonforhightlightjs
#aspnetcore #highlightjs -
@Una @argyleink Awesome! We no longer need #CSS Custom Highlight API nor #PrismJS nor #HighlightJS for syntax highlighting thanks to @gdc!
-
@Una @argyleink Awesome! We no longer need #CSS Custom Highlight API nor #PrismJS nor #HighlightJS for syntax highlighting thanks to @gdc!
-
@Una @argyleink Awesome! We no longer need #CSS Custom Highlight API nor #PrismJS nor #HighlightJS for syntax highlighting thanks to @gdc!
-
@Una @argyleink Awesome! We no longer need #CSS Custom Highlight API nor #PrismJS nor #HighlightJS for syntax highlighting thanks to @gdc!
-
@Una @argyleink Awesome! We no longer need #CSS Custom Highlight API nor #PrismJS nor #HighlightJS for syntax highlighting thanks to @gdc!
-
🗞️ Coming soon: the next release of Highlight.js will officially support Unison syntax highlighting, so we should be seeing even more Unison code out there in the world.
BTW, if you simply cannot wait to style Unison snippets on your website, you can do so right now with https://github.com/runarorama/highlightjs-unison
#highlightjs #unisonlang -
🗞️ Coming soon: the next release of Highlight.js will officially support Unison syntax highlighting, so we should be seeing even more Unison code out there in the world.
BTW, if you simply cannot wait to style Unison snippets on your website, you can do so right now with https://github.com/runarorama/highlightjs-unison
#highlightjs #unisonlang -
🗞️ Coming soon: the next release of Highlight.js will officially support Unison syntax highlighting, so we should be seeing even more Unison code out there in the world.
BTW, if you simply cannot wait to style Unison snippets on your website, you can do so right now with https://github.com/runarorama/highlightjs-unison
#highlightjs #unisonlang -
🗞️ Coming soon: the next release of Highlight.js will officially support Unison syntax highlighting, so we should be seeing even more Unison code out there in the world.
BTW, if you simply cannot wait to style Unison snippets on your website, you can do so right now with https://github.com/runarorama/highlightjs-unison
#highlightjs #unisonlang -
🗞️ Coming soon: the next release of Highlight.js will officially support Unison syntax highlighting, so we should be seeing even more Unison code out there in the world.
BTW, if you simply cannot wait to style Unison snippets on your website, you can do so right now with https://github.com/runarorama/highlightjs-unison
#highlightjs #unisonlang -
Quick heads up, highlight.js now correctly highlights code in namespaced tagged template strings (e.g., kitten.html``, kitten.css``, etc.)
https://github.com/highlightjs/highlight.js/pull/4002
(And Kitten comes with highlight.js baked in. See it in use in this example: https://codeberg.org/kitten/app/src/branch/main/examples/markdown/index.page.js#L24 and please ignore the warnings on that page, there’s nothing wrong with the code, it’s a long-standing @Codeberg bug where proper typography in comments and strings is flagged as errors. Embarrassing.)
-
Quick heads up, highlight.js now correctly highlights code in namespaced tagged template strings (e.g., kitten.html``, kitten.css``, etc.)
https://github.com/highlightjs/highlight.js/pull/4002
(And Kitten comes with highlight.js baked in. See it in use in this example: https://codeberg.org/kitten/app/src/branch/main/examples/markdown/index.page.js#L24 and please ignore the warnings on that page, there’s nothing wrong with the code, it’s a long-standing @Codeberg bug where proper typography in comments and strings is flagged as errors. Embarrassing.)
-
Quick heads up, highlight.js now correctly highlights code in namespaced tagged template strings (e.g., kitten.html``, kitten.css``, etc.)
https://github.com/highlightjs/highlight.js/pull/4002
(And Kitten comes with highlight.js baked in. See it in use in this example: https://codeberg.org/kitten/app/src/branch/main/examples/markdown/index.page.js#L24 and please ignore the warnings on that page, there’s nothing wrong with the code, it’s a long-standing @Codeberg bug where proper typography in comments and strings is flagged as errors. Embarrassing.)
-
Quick heads up, highlight.js now correctly highlights code in namespaced tagged template strings (e.g., kitten.html``, kitten.css``, etc.)
https://github.com/highlightjs/highlight.js/pull/4002
(And Kitten comes with highlight.js baked in. See it in use in this example: https://codeberg.org/kitten/app/src/branch/main/examples/markdown/index.page.js#L24 and please ignore the warnings on that page, there’s nothing wrong with the code, it’s a long-standing @Codeberg bug where proper typography in comments and strings is flagged as errors. Embarrassing.)
-
Quick heads up, highlight.js now correctly highlights code in namespaced tagged template strings (e.g., kitten.html``, kitten.css``, etc.)
https://github.com/highlightjs/highlight.js/pull/4002
(And Kitten comes with highlight.js baked in. See it in use in this example: https://codeberg.org/kitten/app/src/branch/main/examples/markdown/index.page.js#L24 and please ignore the warnings on that page, there’s nothing wrong with the code, it’s a long-standing @Codeberg bug where proper typography in comments and strings is flagged as errors. Embarrassing.)
-
I've added `ssh_config` highlighting to #TiddlyWiki because I can, and I want.
Ngl, ChatGPT helped too, I was driving, she was generating big-ass lists of keywords.
Snippet: https://git.catgirl.cloud/-/snippets/5
PS
It should work with #highlightjs in general -
Any #PostCSS users know how I can include other CSS files with a prefix. Use case is that I want to import two files - light and dark themes for #highlightjs, but dark mode needs all selectors to be scoped with an additional `.dark` class prefix
-
Any #PostCSS users know how I can include other CSS files with a prefix. Use case is that I want to import two files - light and dark themes for #highlightjs, but dark mode needs all selectors to be scoped with an additional `.dark` class prefix
-
Any #PostCSS users know how I can include other CSS files with a prefix. Use case is that I want to import two files - light and dark themes for #highlightjs, but dark mode needs all selectors to be scoped with an additional `.dark` class prefix
-
Any #PostCSS users know how I can include other CSS files with a prefix. Use case is that I want to import two files - light and dark themes for #highlightjs, but dark mode needs all selectors to be scoped with an additional `.dark` class prefix
-
Any #PostCSS users know how I can include other CSS files with a prefix. Use case is that I want to import two files - light and dark themes for #highlightjs, but dark mode needs all selectors to be scoped with an additional `.dark` class prefix
-
Swift code syntax highlighting in WordPress
https://wadetregaskis.com/swift-code-syntax-highlighting-in-wordpress/
-
I'm playing with #pyodide (https://pyodide.org), so that users can try out my Python packages directly into the docs pages! The editor is #ace (https://ace.c9.io/), and the output is highlighted with #highlightjs (https://highlightjs.org/). I'm trying to improve the look and feel but it's already amazing.
-
I'm playing with #pyodide (https://pyodide.org), so that users can try out my Python packages directly into the docs pages! The editor is #ace (https://ace.c9.io/), and the output is highlighted with #highlightjs (https://highlightjs.org/). I'm trying to improve the look and feel but it's already amazing.
-
I'm playing with #pyodide (https://pyodide.org), so that users can try out my Python packages directly into the docs pages! The editor is #ace (https://ace.c9.io/), and the output is highlighted with #highlightjs (https://highlightjs.org/). I'm trying to improve the look and feel but it's already amazing.
-
I'm playing with #pyodide (https://pyodide.org), so that users can try out my Python packages directly into the docs pages! The editor is #ace (https://ace.c9.io/), and the output is highlighted with #highlightjs (https://highlightjs.org/). I'm trying to improve the look and feel but it's already amazing.
-
I'm playing with #pyodide (https://pyodide.org), so that users can try out my Python packages directly into the docs pages! The editor is #ace (https://ace.c9.io/), and the output is highlighted with #highlightjs (https://highlightjs.org/). I'm trying to improve the look and feel but it's already amazing.
-
#highlightjs is a #dependencyless #JavaScript code highlighter.
highlight.js is a clientside source code highlighter that does not depend on any frameworks. highlight.js can be easily used in scripts and webpages by simply using the prebuilt minified source. highlight.js supports hundreds of languages, has many themes, and supports programming language detection.
Website 🔗️: https://highlightjs.org/
#free #opensource #foss #fossmendations #library #programming #webdev
-
#highlightjs is a #dependencyless #JavaScript code highlighter.
highlight.js is a clientside source code highlighter that does not depend on any frameworks. highlight.js can be easily used in scripts and webpages by simply using the prebuilt minified source. highlight.js supports hundreds of languages, has many themes, and supports programming language detection.
Website 🔗️: https://highlightjs.org/
#free #opensource #foss #fossmendations #library #programming #webdev