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
3
votes
2 answers

Syntax Highlighter: can't find brush for XML

I've been using SyntaxHighlighter for some time without any problems. However, I recently restyled my blog and now when one page loads - a page which uses the XML brush - I get a popup saying Can't find brush for: xml I've checked and…
awj
  • 7,482
  • 10
  • 66
  • 120
3
votes
1 answer

Wordpress hueman theme with crayon syntax highlighting

We use the hueman theme and the crayon syntaxhighlighter at our company blog. However we have a problem with the style of the code blocks. For example: A blogpost at our blog At every second code block the css stylesheet seems corrupt. The striped…
trollr
  • 1,095
  • 12
  • 27
3
votes
1 answer

Editable Java Syntax Highlighter for j2ee Application

I need a java SyntaxHighlighter for my jsp based web application.The field or TextArea should remain editable as I will need to save the file again as per the user changes of code. I found this…
brij
  • 217
  • 7
  • 19
3
votes
1 answer

SyntaxHighlighter margin bug with bootstrap?

I have this code.
<?xml version="1.0" encoding="utf-8"?>
<Test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   …
2
votes
1 answer

IE bug with SyntaxHighlighter and jQuery - "Unable to get value of the property 'slice': object is null or undefined"

I really love SyntaxHighter - it turns out the poshest looking code around. Unfortunately I've barked my shins against an appalling JS error in IE7 and IE8 which is going to prevent me using this otherwise excellent plugin altogether. Here's a test…
And Finally
  • 5,602
  • 14
  • 70
  • 110
2
votes
1 answer

Eclipse syntax highlighting on extensionless files?

I have a perl CGI script that needs to have a specific extensionless filename to run correctly from the software that uses it. I'm using Eclipse 3.7.0 on Ubuntu 11.04 Linux as my IDE, and it's not highlighting syntax on the file nor using the…
Swooper
  • 359
  • 4
  • 13
2
votes
4 answers

Remove extra blank lines from SyntaxHighlighter

I'm using SyntaxHighlighter in my blogger blog. But since few days it adds extra blank lines in my code. It only happens to new posts only. Can anyone please tell me how to remove these extra blank lines. I saw similar question. But it does not…
Jayanga Kaushalya
  • 2,674
  • 5
  • 38
  • 58
2
votes
1 answer

Syntax highlighter 3.0 not working on blogspot

Syntax highlighter 3.0 is not working on my blog. I use the newest version right from the website. The issues are: If I write #include in my code, I get at the end of it. There's no text wrapping. The blog's link is…
siemanko
  • 1,389
  • 1
  • 13
  • 26
2
votes
0 answers

Syntaxhighlighter and Tiny MCE

I've used this plugin: https://github.com/RichGuk/syntaxhl to get syntaxhighlighter support via tinymce. this works fine (i dont see the highlighter at time of editing, but thats no problem) i send the whole thing asynchron to my server and get the…
Philipp Spiess
  • 3,263
  • 4
  • 26
  • 34
2
votes
1 answer

Syntax highlighter Not showing proper code on wordpress

I just started using crayon syntax highlighter plugin in WordPress and code on the site auto update itself like && changes to && look the image below
axion
  • 21
  • 1
2
votes
1 answer

Any reliable CDN available for SyntaxHighlighter?

Blow URL is the most common used for loading syntaxhighligter scripts into a page: http://alexgorbatchev.com/pub/sh/current/scripts/ Currently, it redirects to the below location: http://agorbatchev.typepad.com/pub/sh/VER_XXXX/scripts/ The approach…
Allan Xu
  • 7,998
  • 11
  • 51
  • 122
2
votes
2 answers

nodejs syntax highlighter to terminal in nodejs

For this new nodejs debugger I am working on I would like to colorize the source-code lines that are displayed. Any recommendations on a npm to use? There are a lot of syntax highlighters out there, but what makes this situations a little different…
rocky
  • 7,226
  • 3
  • 33
  • 74
2
votes
1 answer

How to render brackets properly in bash code for a blogger post using SyntaxHighlighter

I followed this post and setup SyntaxHighlighter for my blogger. In addition, I added to the head http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushBash.js for rendering bash code, and then I tried to render a line like this
zyxue
  • 7,904
  • 5
  • 48
  • 74
2
votes
0 answers

How can I create a custom syntax highlighting brush for Linux command line examples in Wordpress?

I write a lot of how-tos and tutorials on my blog (self-hosted Wordpress) and I'd like to be able to create two custom syntax highlighting brushes for posts that include stuff typed into the Linux command line -- one brush for standard user commands…
SteveJ
  • 290
  • 2
  • 10
2
votes
2 answers

How to use SyntaxHighlighter for inline code

I am using Syntax Highlighter for my website.But how can I use it for inline code? I mean when I use it for inline code it still shows the line number 1 and I want to remove it as it makes no sense to show line number for inline code i.e I…
Naveen
  • 7,944
  • 12
  • 78
  • 165
1 2
3
10 11