Forum Archive - WordPress & SyntaxHighlighter Plugin

WordPress & SyntaxHighlighter Plugin
Apr 23, 2011 12:48 am by dosboy
It seems that GTranslate doesn't play nice with the SyntaxHighlighter (http://alexgorbatchev.com/SyntaxHighlighter/) plugin. Specifically it translates text contained within the [code] tags (which is obviously bad for code examples) and they lose their formatting. Is there a way to tell GTranslate to ignore elements (and sub-elements) with a class of "syntaxhighlighter", or a facility to selectively ignore specific classes/IDs? As an aside, the forum search facility here doesn't work. It always returns no results, even when searching for something like "language".
Re: WordPress & SyntaxHighlighter Plugin
Apr 23, 2011 1:49 pm by Edvard
You can add class="notranslate" to the wrapper element and it will not translate.
Re: WordPress & SyntaxHighlighter Plugin
Apr 24, 2011 4:44 pm by dosboy
Thank you! That was exactly what I needed.

SIMILAR TOPICS

Onloading the plugin quickly flashes up flags and text namesFeb 7, 2019 3:29 pmReplies: 1Post by: brobertson
wordpress amp link not translateDec 31, 2016 10:11 amReplies: 12Post by: besybuy
Add links to all translated posts on every Wordpress postJan 14, 2019 8:51 pmReplies: 5Post by: ptsniper
Best way to translate a page in WordPress?Jan 7, 2019 11:10 amReplies: 3Post by: Tonnystark
Problem with pluginDec 30, 2018 11:59 pmReplies: 1Post by: Iyari

Try GTranslate with a free 15 day trial