What is Best syntax highlighter for Joomla?
Geshi is not working fine in my site.
How to integrate this style of syntax in Joomla 3 site?
What is Best syntax highlighter for Joomla?
Geshi is not working fine in my site.
How to integrate this style of syntax in Joomla 3 site?
Codemirror is included in joomla.
You can use the formfield "editor" and select codemirror with editor="Codemirror". Take a look at https://docs.joomla.org/Editor_form_field_type
The Geshi code highlighter was removed from Joomla on or around Joomla 3.3.
There are a few third party extensions in the Joomla Extensions Directory that can enable code highlighting:
CedHighlightjs for Joomla 3.x (free)
Easy Code Highlighter for Joomla 3.x and 4.x (paid)
Script Code Highlighter for Joomla 3.x (free)
PRISM Syntax Highlighter for Joomla for Joomla 3.x, 4.x and 5.x (free)
WT Highlight.js for Joomla 4.x and 5.x (free)
BP Prettify for Joomla 3.x and 4.x (free)
"Best" is a little subjective given that you haven't specified any requirements or preferences. I recommend downloading and testing the free ones to see which of these most closely fits your requirements. If none of the free options are sufficient, then you may need to investigate the paid options.
For Joomla!3 and 4 you can use the editor-builtin function to get syntax highlighting in backend.
For syntax highlighting in frontend just install and enable this plugin: https://extensions.joomla.org/extension/prism-syntax-highlighter-for-joomla/
It loads the needed files to use the syntax highlighting also in the frontend. It supports significantly more programming languages than the editor offers, see manual: https://www.andrehotzler.de/en/projects/prism-prismjs-com-syntaxhighlighter-for-joomla.html
(The mentioned plugin for Joomla! was written by me, but not the syntax highlighter "PrismJS" used in the plugin)