Questions tagged [geshi]

Geshi is a free software library that allows syntax highlighting of source code for several markup and programming languages.

GeSHi ("Generic Syntax Highlighter") is a free software library that allows syntax highlighting of source code for several markup and programming languages. The program is written in PHP and is bundled or available as an add-on in popular web-based applications, such as Dokuwiki, Mambo, MediaWiki (see extension), phpBB and WikkaWiki.

43 questions
31
votes
2 answers

Improve GeSHi syntax highlighting for T-SQL

I'm using WP-GeSHi in WordPress, and largely I'm very happy with it. There are, however, a few minor scenarios where the color highlighting is too aggressive when a keyword is: a variable name (denoted by a leading @) part of another word (e.g. IN…
Aaron Bertrand
  • 272,866
  • 37
  • 466
  • 490
19
votes
4 answers

Changing the font size of code formatted by SyntaxHighlight GeSHi in MediaWiki

The font size of my code snippets are too small relative to the default font size of the Wiki, which makes them hard to read (see below for an example). Is there anything I can do to change it? Example: The code that generates the above is: ====…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
10
votes
5 answers

Seeking code highlighter recommendation for WordPress

Can anybody recommend a reliable and decently documented code highlighter for WordPress 2.6.1? I have tried Code Snippet by Roman Roan and Developer Formatter by Gilberto Saraiva. But they don't seem to work as described in the documentation and are…
Brian Matthews
  • 8,506
  • 7
  • 46
  • 68
8
votes
6 answers

Syntax Highlighter for Java

As you know there is a Syntax highlighter for PHP called GeSHi which supports a great number of Programming Languages or Code formats. However, I couldn't find such a library for Java which supports programming languages that I need (ADA, ASP, BNF,…
ahmet alp balkan
  • 42,679
  • 38
  • 138
  • 214
7
votes
1 answer

Geshi syntax highlighting for the R programming language

Does Geshi support the R programming language? This table (Geshi for MediaWiki) does not list R, so I guess the answer is no, but I just wanted to check. Is there any programming language with a similar sintax that could help highlight, at least…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
5
votes
3 answers

Indenting code in MediaWiki

Is it possible to indent a block of code in MediaWiki using SyntaxHighlight GeSHi? For example, I would like the code container below to be aligned with the third-level list * This is plain text of a first-level list to be rendered by MediaWiki **…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
4
votes
2 answers

Drupal: Trying to use GeSHi with CKeditor

I was hoping to use CKeditor with GeSHi, but I'm having some major difficulties. What happens is, if I create a new piece of content, then, disable CKeditor so I'm just writing plain HTML, I can enclose a code snipptet in
 
tags. If I…
SSilk
  • 2,433
  • 7
  • 29
  • 44
4
votes
1 answer

GeSHi code editor for the web

hi :) (sorry if my english is not perfect :/ ) im trying to make a code editor for my site, i want to color automatically code written by users at the some time they tape it. i found this php script which use GeSHi to color code . my problem is that…
user3375448
  • 695
  • 6
  • 14
3
votes
3 answers

Syntax Highlighting in Drupal

Which is the best module for Syntax Highligting in Drupal. I am using GeSHi for syntax highlighting my code. It was working fine then I installed a second module FCKeditor. Now GeSHi filter is not working with FCKeditor. Do anyone have any idea why…
Vaibhav Jain
  • 33,887
  • 46
  • 110
  • 163
3
votes
2 answers

How to enable Mathematica syntax highlighting for MediaWiki using extension "SyntaxHighlight GeSHi"?

I'd like to syntax highlight Mathematica code on a MediaWiki site. I've already installed the MediaWiki extension SyntaxHighlight GeSHi and verified that it works for other languages. I tried simply putting a Mathematica langauge data file…
3
votes
1 answer

What other markup syntax is closest to MediaWiki?

GeShi is a syntax highlighting tool used by projects and vendors like MediaWiki and pastebin.com, respectively. However, GeShi does not natively support MediaWiki markup syntax. What would be the closest "look alike" that I could use to highlight a…
javafueled
  • 494
  • 1
  • 5
  • 23
2
votes
2 answers

bolding part of code in MediWiki

I use mediawiki-1.30.0 and want to bold a part of code snippet in MediaWiki. Unfortunately as it is described here, it seems does not work in pre tag. Also I did not find any way to bold a part of code in SyntaxHighlight_GeSHi extension…
hasanghaforian
  • 13,858
  • 11
  • 76
  • 167
2
votes
2 answers

(drupal) ckeditor breaks my blockcode tags

I'm using blockcode and geshi module on my blog to highlight syntax in my posts. but everytime i edit a post with blockcode tags i have to disable ckeditor, because otherwise it will break my code, it inserts nbsp and br tags, which are visible in…
jogo
  • 134
  • 1
  • 9
2
votes
3 answers

Geshi with Markdown

Im trying to get GeSHi to work with markdown. A simple use for Geshi is as follows: $geshi = new GeSHi($message, 'c'); print $geshi->parse_code(); The above code takes in the whole of message and turns it into Highlighted code I also have my…
Angel.King.47
  • 7,922
  • 14
  • 60
  • 85
2
votes
1 answer

GeSHi Syntax Highlighting in Mediawiki for command line

Does the Mediawiki extension SyntaxHighlight GeSHi come with highlighting support for bash/ash/sh, for example by coloring program arguments, strings and numbers or emphasizing commands? Example (this is SO highlighting for bash): user@host ~/test $…
steffen
  • 16,138
  • 4
  • 42
  • 81
1
2 3