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
2
votes
1 answer

SyntaxHighlighter not working in the blogger preview mode

I had been using SyntaxHighlighter along with Google Blogger to highlight code and xml on my blog. It used to work in the preview mode and also once the post has been published. All of sudden it stopped working in the preview mode, but works once…
Praveen Sripati
  • 32,799
  • 16
  • 80
  • 117
2
votes
2 answers

jQuery and syntax highlighter not working on dynamically loaded tabs

my problem is that i am using jquery UI tabs in my website. the content in the tabs is loaded dynamically or you ca say whenever i click the tabs another html page is displayed in the tabs display panel. but the real problem arises whenever i wants…
adhikari
  • 112
  • 2
  • 13
2
votes
2 answers

Is there any syntaxhighlighter for Excel

Is there any program or website that could convert an Excel macro code into an html nice looking format. I used syntaxhighlighter for Java and Java scrtipt. Is there anything similar fot Excel?
CHEBURASHKA
  • 1,623
  • 11
  • 53
  • 85
2
votes
1 answer

ExtJs4: Panel : SQL SyntaxHighlighter: No scrollbars/wrapping of lines

I am using an ExtJs Panel to display an SQL query on the screen. For highlighting the query I am using SyntaxHighlighter. Problem: I am not getting scrollbars in the panel even after setting "autoScroll: true" for the panel. I have tried the…
DarkKnightFan
  • 1,913
  • 14
  • 42
  • 61
2
votes
1 answer

SyntaxHighlighter.highlight() does not cause syntax highlighting on modified content within pre

This is my situation, I have a pre tag which I populate with content to be highlighted, when I populate the pre tag with content on the page load it works, highlighting and all. However if after the page has loaded I update the content in the pre…
rightclick
  • 43
  • 2
2
votes
1 answer

Getting gwt-syntaxhighlighter to work

I've been struggling to get the GWT wrapper of Syntaxhighlighter to work. I got the libraries off http://code.google.com/p/gwt-syntaxhighlighter/, but none of them seem to be working. I'm starting to wonder if it's my understanding of using external…
VHristov
  • 1,059
  • 2
  • 13
  • 25
2
votes
4 answers

Syntaxhighlighter is not working on blogger

Hi I've used following links: http://www.cyberack.com/2007/07/adding-syntax-highlighter-to-blogger.html I followed step by step but I couldn't get it working on my blog. It prints as its whatever is written there as if it ignoring the tag itself. …
nishantcop
  • 977
  • 1
  • 8
  • 24
2
votes
1 answer

How to load Syntax Highlighter on pages which contains pre tag ?

i am a Blogger and sometime's i need to demonstrate codes on my blog, so i used a Syntax Highlighter by Alex Gorbatchev. But the problem is that the files loads in each and every page of my Blog and that makes the blog load slow. I have got codes…
Deepak Kamat
  • 1,880
  • 4
  • 23
  • 38
1
vote
1 answer

link, script tags between and

I've just started using SyntaxHighlighter. I looked at their HTML source code for this page and noticed that they put some link and script tags between and . I guess it helps the page turns up faster plus with their new autoload…
BPm
  • 2,924
  • 11
  • 33
  • 51
1
vote
2 answers

SyntaxHighlighter 3.0.83 on Blogger splits my source code

I'm trying to use SyntaxHighlighter 3.0.83 on Blogger in order to highlight some simple java code but my single java line is split in many chunks. Here's what I did to set it up: Blogger: Design | Template | Edit HTML Added these lines right before…
galli2000
  • 478
  • 5
  • 14
1
vote
0 answers

How to create a custom toolbar for SyntaxHighlighter 3.0.83?

I am trying to create a custom toolbar for SyntaxHighlighter 3, but have been unable to figure out how to do so. I've seen custom toolbars before but only for version 2. I don't care if it is either a text-based or image-based toolbar so long as it…
James Mnatzaganian
  • 1,255
  • 1
  • 17
  • 32
1
vote
3 answers

alex gorbatchev's syntax highlighter giving an error message

I'm getting the following error message in Chrome and firefox while trying to implement gorbachev's syntax highlighter. The page at local host says: SyntaxHighlighter Can"t find brush for: php It's all the more frustrating because i just got it…
expiredninja
  • 1,397
  • 4
  • 25
  • 45
1
vote
1 answer

Mobile Site: Lack of horizontal scrolling on iPhone

I've recently created a mobile version of my website. Generally things work fine, however I'm having some issues with mobile devices not scrolling horizontally on code snippets and with YouTube video embeds. I use SyntaxHighlighter to highlight the…
anon
1
vote
0 answers

getting syntaxhighlighter to recognize html added by javascript?

I'm trying to make a wysiwyg editor of sorts.. I want to be able to preview code snippets I am putting into my website before posting them. I have gotten syntaxhighlighter to work properly.. But I want to change HTML on the page and have…
1
vote
0 answers

Pyqt5/Pyside2 running QRegExp and QSyntaxHighlighter response very slow

It is a code made for identifying CEFR level of typing words. Basically frame see as below picture, I used QRegExp and QSyntaxHighlighter. The mainly function logic is through QSyntaxHighlighter to highlight specific words in the QPlaintextedit…
Libo
  • 11
  • 3