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

How do I set up a syntax highlighter on Blogger?

How do I set up a syntax highlighter on Blogger's new interface? I did try with many options but nothing has worked. Please give any suggestions.
Anil
  • 935
  • 1
  • 8
  • 8
20
votes
5 answers

Extra Lines using SyntaxHighlighter for Chrome Only?

Extra lines are being inserted when I am using Chrome to look at a draft blog post (on blogger) that uses syntax highlighter e.g. But on IE it looks fine: Any ideas what I am doing wrong here? edit: The config/setup for SyntaxHighlighter I am…
glosrob
  • 6,631
  • 4
  • 43
  • 73
18
votes
6 answers

Blogger SyntaxHighlighter doesn't work at all

I've been trying to install SyntaxHighlighter 3.0.83 on Blogger for couple hours. I've tried many tutorials but it still doesn't work. I mean it looks just as normal text inserted nto pre tag. I created a new blog and pasted:
g-t
  • 1,455
  • 12
  • 17
15
votes
2 answers

Automatic line break in js SyntaxHighlighter

Im using the js SyntaxHighlighter 3.0.83 from http://alexgorbatchev.com/SyntaxHighlighter/ I've been googling the entire world now it seem but cant really find how to enable line breaks. Instad i get a horizontal scrollbar, which is good sometimes…
Eric Herlitz
  • 25,354
  • 27
  • 113
  • 157
15
votes
3 answers

How can I show code (specifically C++) in an HTML page?

How can I show code in a website using HTML? Basically, I have a C++ program that I'd like to share on my website and I want to show it in the page. Is there anyway to show a C++ code in HTML other than using HTML text?
hhdgfdg
  • 151
  • 1
  • 1
  • 3
14
votes
7 answers

SyntaxHighlighter: How to remove the lime-colored question mark or at least change its color?

Well, the green question mark does not go with my website color scheme. How do I change/remove it? You can see it here: http://alexgorbatchev.com/SyntaxHighlighter/manual/installation.html Thanks!
chrisapotek
  • 6,007
  • 14
  • 51
  • 85
9
votes
2 answers

Syntax highlighter not working

I am just following the instruction over here and its not working any help?
Skyyy
  • 1,539
  • 2
  • 23
  • 60
8
votes
1 answer

Aptana Studio 3: How to get Syntax Highlighting of Shell Scripts *.sh

Is there any "Formatter" / syntanx highlighting for linux shell script available for Aptana Studio 3 ?!? I did find "shelled" but this seems only to work with eclipse and not aptana studio 3 standalone (and i could not get it to work in eclipse…
8
votes
3 answers

Custom Syntax Highlighter in Visual Studio for Shopify .liquid Files

I'm currently working in a Shopify project which I have integrated to work locally. I'm using Visual Studio as my IDE which is super awesome. When working with .liquid files, I treat the extension to be opened with HTML editor with encoding. This is…
kent-id
  • 717
  • 10
  • 25
7
votes
4 answers

Remove line numbers from SyntaxHighlighter

Is there any way to remove the line numbers of SyntaxHighlighter? Thanks!
Paulo
  • 7,123
  • 10
  • 37
  • 34
6
votes
1 answer

SyntaxHighlighter with webpack and react

I try to implement SyntaxHighlighter using react and webpack. I install it via npm. npm install --save syntaxhighlighter It install perfectly. Now the problem is how to import it properly. I've tried like this: import SyntaxHighlighter from…
Marco
  • 131
  • 1
  • 7
5
votes
2 answers

Syntaxhighlighter can't find any brushes after ajax request

I'm using Syntaxhighlighter on a web page, I have made a javascript function to load all brushes using SyntaxHighlighter.autoloader(...) and apply SyntaxHighlighter.all() I run this function once when the page gets loaded, result: the syntax…
5
votes
5 answers

SyntaxHighlighter not showing toolbar

I am using the latest SyntaxHighlighter within my app and for some reason the toolbars do not show in IE, Firefox or Chrome. The code highlights without issue, but I want to have toolbars. What makes things worse is that the toolbar demo on the…
Keith Adler
  • 20,880
  • 28
  • 119
  • 189
5
votes
2 answers

Disable double click selection for SyntaxHighlighter

SyntaxHighlighter has a feature that allows code selection by double clicking. How can I disable this feature?
Ryan
  • 2,825
  • 9
  • 36
  • 58
5
votes
2 answers

What is the fastest way to create a cross-platform IDE for a new programming language?

The title already says most of what I'm after, but let me state some of the requirements explicitly: The language is not widely used, so writing a new language tokenizer etc is assumed to probably be required. Cross-platform, means at least Linux,…
1
2 3
10 11