Questions tagged [syntaxhighlighter]

SyntaxHighlighter is a code coloring JavaScript library made by Alex Gorbatchev. The syntaxes supported include Java, Javascript, XML, C#, C++, PHP, Perl, SQL and many more.

Questions with this tag concern the use or modification in behavior of Alex Gorbatchev's SyntaxHighlighter code decorator. Typically this is used in blogs or documentation sites to render blocks of code easier to read.

161 questions
0
votes
1 answer

Can I "hide" a block of jade from the renderer?

I'm trying to build a style guide in jade + prismjs + angular. It will have jade code examples. So I need some of my jade to "stay jade." For example: //- source.jade .description A component pre.code-example code.language-jade .my-component …
leff
  • 575
  • 1
  • 3
  • 12
0
votes
1 answer

Failed to load resources when trying to perform syntax highlighting in a blog

I used syntax highlighter in my blog, but seems like now it can't find the relevant resources. I followed this tutorial to add that functionality to the blog by editing the template.
prime
  • 14,464
  • 14
  • 99
  • 131
0
votes
1 answer

SyntaxHighlighter unreliable and not working on mobile

I've started to use SyntaxHighlighter for my syntax highlighting needs. However, I've realized that it doesn't work on mobile. Similarly, it often doesn't work on desktop browsers, but sometimes it does. It often defaults back to the
 styles…
Jonathan Lam
  • 16,831
  • 17
  • 68
  • 94
0
votes
2 answers

blogspot : syntax highligting URLs are replaced to https from http

Background : I am using CustomizeMe.xml template as my blogger template from helpbolgger.com . I have also integrated syntax highlighter in blogger template. The CDN file which I have included in the template do not load and give the…
Yogesh
  • 773
  • 1
  • 8
  • 22
0
votes
1 answer

SyntaxHighlighter on Blogger - unexpected line added to Python snippet

I am using SyntaxHighlighter on Blogger. The problem is that an unexpected line is added to my Python code snippet. The code is enclosed in:
  ...
My code is: (venv) dm@Z580:~/workspace/venv/greeter$ python Python…
Dušan Maďar
  • 9,269
  • 5
  • 49
  • 64
0
votes
1 answer

SyntaxHighlighter (javascript) problem with

I am using syntaxhighlighter (http://alexgorbatchev.com/wiki/SyntaxHighlighter) with a php source code with the ins and del tag. What I would like to do is to have syntaxhighligher ignore those html tags so that they can be parsed correctly. So I'd…
Patrick
  • 4,815
  • 11
  • 52
  • 55
0
votes
1 answer

How to use the latest version(3.0.83) of syntax highlighter written by Alex Gorbatchev?

I am trying to use syntax highlighter but it is not working. Here is the hello, world sample.
0
votes
2 answers

Display JSON object nicely with Syntax Hihjlighter

I'm trying to display a JSON object nicely (this means on several lines with indentation) with Alex Gorbatchev plugin : http://alexgorbatchev.com/SyntaxHighlighter/ Unfortunately, it all displays on a single line. I'm using the javascript…
hugsbrugs
  • 3,501
  • 2
  • 29
  • 36
0
votes
3 answers

jQuery load() can not work with syntaxhighlighter

I use syntaxhighlighter in my page and it works well.
some code here
But it doesn't work when I save to a html file then use jquery load function to load them. $(function(){ …
SPG
  • 6,109
  • 14
  • 48
  • 79
0
votes
0 answers

Identify the programming language from the given block of code

I am using the SyntaxHighlighter plugin in one of my projects and What the question is I want to identify the programming language from the given block of code on document load. I have written the block of code in between the "pre" tag in a HTML…
Srikanth
  • 122
  • 1
  • 8
0
votes
0 answers

AvalonText custom highlight set in xaml wpf

I am trying to use the AvalonText wpf control with a custom xmhl highlighting file. The control will appear as the row detail of a data grid so I can't set the highlighter at run time (or at least I don't know how) and would rather do it in XAML…
Lance
  • 611
  • 6
  • 28
0
votes
2 answers

Lines of code shifted down one from numbering in Wordpress with SyntaxHighlighter Evolved and Virtue theme

I use SyntaxHighlighter Evolved to show code on my wordpress sites. One one site using the TwentyTwelve theme, everything works as expected. However, on another that uses Virtue, all the code is shifted down one line when line numbering is turned…
ARM
  • 1,520
  • 1
  • 12
  • 24
0
votes
1 answer

Javascript/jQuery How to Attach a Load Spinner to the Syntax Highlighter Plugin

I am using Alex Gorbatchev's SyntaxHighlighter plugin to beautify XML messages. It works like a charm for small messages, but takes quite a bit of time for bigger ones (~10k lines) and the page gets frozen until the plugin finishes work. Now I would…
vasus
  • 23
  • 6
0
votes
1 answer

SyntaxHighlighter and Blogger preview mode

Is it possible to set up SyntaxHighlighter in the way that I can see formatting in the preview mode?
Damian
  • 593
  • 6
  • 27
0
votes
1 answer

Displaying html form tag in using SyntaxHighlighter

I cannot get a HTML form tag to display as code on my website using the syntax highlighter library. Here is my code: