Enabling syntax highlighting for lisp in Docasaurus website - syntax-highlighting

I'm trying to enable code block syntax highlighting for lisp on my Docusaurus website. I added the following property on my themeConfig:
prism: {
additionalLanguages: ['lisp'],
}
but it didn't seem to do anything. It also seems that I cannot do any of the fancy code block stuff mentioned in the docs here including adding a title=
Any help would be appreciated thanks!

The issue was with one of my dependencies. I literally copied over the dependencies list from new.docusaurus.io and ran npm i and then my code was highlighting away!

Related

I can not get pigments highlighting for Python to work in my Sphinx documentation

I've tried adding highlight_language and pygments_style in the config.py and also tried various ways I found online inside the .rst file. Can anyone offer any advice on how to get the syntax highlighting working?
Sorry, it turns out that program arguments aren't highlighted (the test I was using)

XCode: comment out code in javascript file

I normally comment and uncomment code with XCode using this command:
(command+slash)
This works just fine for swift file, but it does NOT work for javascript files. Is there way I can configure XCode to do this for all files?
I don't think it's possible to extend the standard comment out command to Javascript as well, sorry :-(
Having said that, you could try adding a custom shortcut following these steps. (But might be tricky to completely reproduce the native comment out behavior.)

Code highlighting problems with prettify in VoltRb

I've been having some problems getting the JavaScript prettify library to work on a project in VoltRb. The problem is that the code highlighting seems to work only when an error occurs and the page is reloaded. I think that the problem has something to do with Volt's persistent connection and that part of the problem is the prettify script is not finding the elements it needs to find, and any custom themes are also having the same problem.
Here is a simple demo project demonstrating my issue: https://github.com/ylluminarious/code_prettify_volt
How can I get code highlighting working with prettify in Volt?
As it turns out, prettify is not a good solution for code-highlighting in Volt, as it is more geared for static apps. A better solution is highlight.js (since it is more geared for dynamic apps), which actually has been incorporated into a Volt component which works very well for all your highlighting needs.

How to get a ruby syntax highlighting in IntelliJ IDEA Community 12

I know that there is no "official" support from Jetbrains. How can I workaround this?
I just need a syntax highlighting level of support for ruby.
Thanks in advance.
Follow the instructions in this blog post:
http://blog.jetbrains.com/idea/2010/09/custom-file-types-in-intellij-idea/
I've followed that process myself to setup custom syntax highlighting for both Velocity Template Language and JavaScript files, and am just about to do the same for Ruby.
Sure there is here an official technical support.
You can find ruby plugin for IntellJ IDEA here
Btw, first I thought you were using RubyMine, there you can set the auto-completion by going to File | Settings - IDE Settings - Editor - Code completion, so you could try to find what's up in this path for IntelliJ IDEA

Code Highlighting for Joomla

I need syntax highlighting of source code from various languages (PHP, C#, VB, etc) within articles I have in Joomla. I have tried enabling the Geshi plugin, updating the language files and putting the code into my Joomla article - however I can't seem to get it to work.
I have also tried CodeCitation from JED but again, the problem seems to be the same - I don't know how to tell Joomla to process it as code. I placed {codecitation} and {/codecitation} around my code (as well as including the brush value) but it doesn't work. I am unsure if these tags should be placed on the source or the wysiwug
Could someone please assist with an alternative method or work out what I am doing wrong?
With CodeCitation: if you already wrote the article using the tags (i.e. {codecitation} code {/codecitation}), it should work. Did you check if you enable the mambot?
As of Joomla 3.4 Geshi has been removed - but you can still get Geshi+ (geshi repackaged with all the additional languages) - & see the tips here on how to configure geshi.
An example of Geshi+ working is here.
There are now Joomla plugins using highlightjs & google's prettify library to highlight syntax but I found geshi+ worked much better
I am not certain if you can use it in Joomla or not. I use the syntax highlighter by Alex Gorbatchev. I have used it in a couple of blogs (wordpress for instance) and in some stand alone web pages. Not hard to intergrate. It uses the 'pre' tags. You need to be sure the code is already escaped. It may be worth a look. Here is a link.
http://alexgorbatchev.com/SyntaxHighlighter/
Hope this helps.
Bob

Resources