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
4
votes
5 answers

Highlighting lines in different colors in SyntaxHighlighter

In SyntaxHighlighter, is it possible to highlight lines with different colors (say, some lines in green, some other in blue)?
Roberto Aloi
  • 30,570
  • 21
  • 75
  • 112
4
votes
3 answers

Creating a syntax highlighter in python(PyQt4)

I've been searching the internet about the Syntax highlighting of a particular file in a text editor and i read about Lexers and Yacc. i'm quite confuse about the concepts on syntax highlighting. I've created a simple text editor using PyQt4 and i…
dragfire
  • 435
  • 1
  • 7
  • 20
4
votes
2 answers

SyntaxHighlighter doesn't work on Blogger Dynamic Views?

Currently I plan to add SyntaxHighlighter to my Blogger (Dynamic Views). However, I tried all the methods on the Internet but still not be able to work it out, including [1] [2] [3] [4] [5] [6]. Any idea on how to fix this? Or any alternative syntax…
herohuyongtao
  • 49,413
  • 29
  • 133
  • 174
4
votes
1 answer

How to disable built-in code box when using Syntaxhighlighter3?

I'm using Dokuwiki and want to get rid built-in code box (boxes with grey outline) when using Syntaxhighlighter3. Appreciate if anyone know how to do this.
yuwono95
  • 237
  • 3
  • 11
4
votes
2 answers

SyntaxHighlighter.all() doesn't work on DOM level?

Possible Duplicate: jquery load issue I'm loading content dynamically into a div using the jQuery load() function. In the callback I'm calling SyntaxHighlighter.all(), to pretty print the syntax of the pre block that just got loaded into the…
nkr1pt
  • 4,691
  • 5
  • 35
  • 55
4
votes
1 answer

How to change font size in Alex's Gorbatchev SyntaxHighlighter?

I've tried to change the font sizes in Alex Gorbatchev's SyntaxHighlighter .css theme files, and used font-size in the
 tag, etc, but nothing happens. The size won't change.
PD: this is the shCore.css main file.
Wyvern666
  • 633
  • 1
  • 11
  • 26
3
votes
1 answer

what kind of vulnerably scan is this?

Some of the 404 error logs I see on my website are obviously caused by vulnerably scanners and in most cases, I can understand what it is scanning! (and it's mainly about sql-injection) However I've seen a couple of logs which I don't quite…
Mahdi
  • 55
  • 1
  • 7
3
votes
1 answer

Any Pygments lexer for the Mustache templating language?

I'd like to list source code of Mustache templates in my paper, and I'm using the minted package for highlighting code in my LaTeX source. The minted package simply uses Pygments. But there isn't any Pygments lexer for Mustache at the moment. Does…
3
votes
1 answer

Reactmarkdown can not escape quotes and backticks

I have the code below which helps me display markdowns component with syntax highlighting. Everything works fine except when I input ``` which is always going to happen because am taking the markdown source from an input field. const renderers = { …
3
votes
3 answers

npm building issues for SyntaxHighlighter

I'm a beginner with npm and is trying to build SyntaxHighlighter version 4 by cloning it using git first, but failed. Here are the errors I got: 1 error generated. make: *** [Release/obj.target/binding/src/create_string.o] Error 1 gyp ERR! build…
user12260140
3
votes
2 answers

Why is SyntaxHighlighter being fetched via HTTP from blogger.com

I added the following HTML to the head section of my blogger.com theme.
Peter Morris
  • 20,174
  • 9
  • 81
  • 146
3
votes
0 answers

Strange Issue with Syntax Highlighter on Google Blogger

I have encountered a strange issue with Syntax Highlighter on Google Blogger. I added Syntax Highlighter to my blog step by step,but it didn't worked for me, i reassured everything in the EDIT HTML of my blog. Still the problem persisted. Later i…
Omi
  • 31
  • 4
3
votes
0 answers

Syntax highlighting textview displaying source code not putting a new line

I had to display some source code in my text view along with syntax highlighting So i used java prettify jar and imported it into my project and craeted a prettify highlighter class The highlighting works fine but there is no new line inserted…
user5894647
  • 544
  • 6
  • 15
3
votes
1 answer

SyntaxHighlighter gets parsed incorrectly

My SyntaxHighlighter gets parsed incorrectly, inserting code blocks with
...
into Markdown, for instance: Case 1: remove `` parse as `` Case 2: incorrectly pairing
private…
SparkAndShine
  • 17,001
  • 22
  • 90
  • 134
3
votes
3 answers

How to fix? Wordpress wp-markdown plugin corrupted syntax-highlighter-evolved plugin posts?

I have been documenting some C++ codes (or can be any codes) over the past few months on wordpress, with the Syntax-highlighter-evolved plugin. Everything had worked fine. e.g. the C++ codes displayed correctly in post. e.g. the following syntax…
Atlas7
  • 2,726
  • 4
  • 27
  • 36
1
2
3
10 11