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

How can I syntax highlight the output from the exec() function in PHP?

I'm fetching output from the exec() function and I would like to have some syntax highlighting in the results. Raw output Current output is raw: * [35mmanu[m/etc/init.d/mast: line 105: /var/log/mast/mast-all.log: Permission denied Text such as…
Édouard Lopez
  • 40,270
  • 28
  • 126
  • 178
0
votes
1 answer

Keep indentation when paste into tinymce

When I copy formatted code from code editor into tinymce PRE tag, it remove all indentations (\t). I tried all paste configuration parameters but it not help. Valid code : When paste into tinymce
trinvh
  • 30
  • 1
  • 4
0
votes
1 answer

Horizontal scroll - syntaxhighlighter

I was googling to find a solution for this forever, I was so close but still can't find the problem... The closest solution I found was at this site But: I want exactly the opposite of what this guy posted: Automatic line break in js…
BlazE
  • 81
  • 1
  • 16
0
votes
1 answer

syntaxhighlighter -- how to add the optional language pack to standard version

The standard version of syntaxhighlighter 3.0.83 ( http://alexgorbatchev.com/SyntaxHighlighter/download/ ) is similar to the plugin for Wordpress which contains an optional language pack ( http://wordpress.org/plugins/wp-syntaxhighlighter/ ) --…
lawlist
  • 13,099
  • 3
  • 49
  • 158
0
votes
1 answer

syntaxhighlighter -- insert link to file instead of pasting snippet

Is there any way to insert a link to a file containing source code, instead of pasting the code directly into the webpage to achieve syntax highlighting? (With the "ability to place virtually anything inside the CDATA without having to escape…
lawlist
  • 13,099
  • 3
  • 49
  • 158
0
votes
2 answers

syntaxhighlighter CSS not working

I add the syntaxhighlighter library to my project in order to view XML files. For some reason when using the syntaxhighlighter outside the dialog then I can see the CSS style but not within the dialog. This is not working:
angus
  • 3,210
  • 10
  • 41
  • 71
0
votes
2 answers

SyntaxHighlighter with $().load Not Working

Edit: Editing for clarity and actual use. Actual use might even make this situation easier? I'm building a style guide and I want to include source code to the common styles/patterns for people who will be using the guide. My plan is to abstract out…
EHorodyski
  • 774
  • 1
  • 8
  • 30
0
votes
1 answer

Black Horizontal Scroll Bar Syntax Highlighter for Blogger

I have a blog using Syntax Highlighter plugin. I added the plugin in the header of the HTML theme. This is the following plugin script :
wahyueka31
  • 664
  • 2
  • 8
  • 18
0
votes
1 answer

How to hide syntaxhighlighter brush on page load?

On my site I supply code samples for both C# and Visual Basic in articles. By default, I want only the C# brushes to display on page load (vb samples would be set display: none; In the past I've accomplished this by waiting for all the content to…
Ortund
  • 8,095
  • 18
  • 71
  • 139
0
votes
2 answers

Building syntaxhightlighter with nodejs in windows 7

I need to build Syntaxhighlighter from here: https://github.com/alexgorbatchev/SyntaxHighlighter I have read these: https://npmjs.org/doc/faq.html Getting started with NODE.JS in windows x86 Get started with Node.js in Windows Installing node…
Cliff Smith
  • 109
  • 1
  • 1
  • 10
0
votes
1 answer

SQL Syntax highligther in Java

I am looking some good Sql Syntax highlighter which will easily integrated with Component based(JSF,ZK ) framework. Any idea which will be best for me i tried Codeirror but binding is not working. Any one suggest some other which will easily…
Subodh Joshi
  • 12,717
  • 29
  • 108
  • 202
0
votes
1 answer

How to create dynamic content within syntaxhighlighter

I want to display a property name based on user input and display this inside of SyntaxHighlighter. Another post says this is supposed to be easy. JS $('#inputText').keyup(function () { var outputValue = $('#codeTemplate').html();//Take…
P.Brian.Mackey
  • 43,228
  • 68
  • 238
  • 348
0
votes
1 answer

SyntaxHighlighter is null

I am using SyntaxHighlighter. I followed the installation steps and I'm receiving a few errors in the firebug console: TypeError: SyntaxHighlighter is null ReferenceError: XRegExp is not defined I imported the necessary files. Markup Why I am…
P.Brian.Mackey
  • 43,228
  • 68
  • 238
  • 348
0
votes
2 answers

JavaScript errors in IE8 with different Primefaces component

We are getting JS (apparently jQuery) errors in IE8 when trying to close a p:growl or it is trying to autohide (sticky=false) when using effect attribute on various pf component (e.g. p:calendar) e.g.: When clicking on the x to close a p:growl…
jimmybondy
  • 2,092
  • 3
  • 21
  • 33
0
votes
0 answers

use SyntaxHighlighter 3.0.83,I find somes bugs

As the image says,after line 177,we can not find the line num.For convenience,here is the problem.
guolei
  • 89
  • 1
  • 2
  • 11
1 2 3
10
11