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

Can Prettify.js be used to highlight code on Wikipedia?

I want to add highlighted Mathematica source code to Wikipedia pages, samples of brief apps like those in WR's Tweet-a-Program. Currently, there's good support for Mathematica syntax highlight in prettify.js, and this is what…
andandandand
  • 21,946
  • 60
  • 170
  • 271
1
vote
1 answer

MediaWiki search in tag (SyntaxHighlight GeSHi extension)

How to enable searching in tag (SyntaxHighlight GeSHi extension)? I'm trying to search for com.android.chrome in it, but no result found :-(. String is IMHO long enough to be found.
pevik
  • 4,523
  • 3
  • 33
  • 44
1
vote
1 answer

Using GeShi with Zotonic CMS

Is it possible to use the GeShi syntax highlighter (written with PHP) with Zotonic CMS (written with erlang) ? Does a specific module exist or is it necessary to make some modification with erlang ?
JeanJouX
  • 2,555
  • 1
  • 25
  • 37
1
vote
1 answer

Lua long strings not displaying correctly using geshi syntax highlighting

I am storing my new Lua code in to a Dokuwiki system which uses the geshi highlighter (written in php). How ever I am having a problem with long string definitions in lua for example strLong = [[If this is a long string then I don't want it…
Jane T
  • 2,081
  • 2
  • 17
  • 23
1
vote
1 answer

GeSHi syntax highlighter: display source instead of rendered HTML

How can I output the HTML source-code of of my highlighted code-snippets instead of displaying the rendered HTML? In the below example, the output is fully rendered, but I need the HTML-source.
Madamadam
  • 842
  • 2
  • 12
  • 24
1
vote
1 answer

Add

I use mediawiki to take note about the procedure that I follow, the source codes I write in mediawiki are highlighted with the expansion Genshi Syntax HighLight. I want to modify this expansion in mediawiki so it could be created a box above the…
1
vote
1 answer

Setting maximum width of
 tag in GeSHi of PHP

I am using GeSHi for Syntax Highlighting. Is there any way to set width of PRE tag generated by GeSHi? What I mean is I have a textarea with the width of 500px and therefore as usual text is word-wrapped for long lines. And when I send text from my…
user3182138
1
vote
1 answer

How do I make Geshi formatting easily copyable?

I have installed the Geshi extension to allow for syntax highlighting on my MediaWiki-powered website. I am trying to figure out how to make syntax highlighting easily copyable. Currently, when I try to copy code formatting, the line numbers get…
dangerChihuahua007
  • 20,299
  • 35
  • 117
  • 206
1
vote
1 answer

websvn geshi error on large files

I use websvn with (default on) geshi colourise option. If I want to open (not so) large files like wordpress db class file (wp-db.php) the browser throws error:101 (net::ERR_CONNECTION_RESET) error. With smaller files it works fine. If I turn off…
davidzoli
  • 44
  • 2
  • 6
1
vote
1 answer

Markdown with GeSHi Usage

I was using Markdown for a while for formatting rich contents. Then I needed a bit extra, something like how our StackOverflow does. So, I thought of getting GeSHi work with Markdown. I tried that markdown_extra_geshi, but I couldn't work on it. At…
Praveen Kumar Purushothaman
  • 164,888
  • 24
  • 203
  • 252
0
votes
1 answer

Using geshi inside a textarea

Yes, sound weird. But I'm trying to make a text editor inside the browser. I've seen some programs use it. Like wordpress and unet. But I'm not sure if they use a custom one or not. However, this topic explains why geshi won't work in textarea: Why…
Death.System
  • 144
  • 1
  • 9
0
votes
1 answer

Can a regular expression in GeSHi include a keyword?

I'm working on a language file for GeSHi and would like to highlight the (unknown) word following a keyword and some whitespace. I have tried something like $language_data = array ( ... 'KEYWORDS' => array( 1 => array( …
maf
  • 305
  • 1
  • 9
0
votes
1 answer

How to highlight codechanges in geshi

I have a running dokuwiki and am working with code-blocks like: I now would like to highlight single lines of codes (like for example…
Gundon
  • 2,081
  • 6
  • 28
  • 46
0
votes
2 answers

Where do I submit a feature proposal for MediaWiki GeSHi extension?

GeSHi Sourceforge group redirects MediaWiki-related issues to MediaWiki. MediaWiki redirects requests & features back to SourceForge. I modified my install to parse PHP blocks allowing to highlight HTML/JS/CSS as well.
Ast Derek
  • 2,739
  • 1
  • 20
  • 28
0
votes
1 answer

Geshi code highlighter does not work

I am using Geshi code highlighter in Joomla 3.8.1 but it does not work. I have enabled both "Content - Script Code Highlighter (GeSHi)" and "Button - Script Code Highlighter (GeSHi)", and in fact, button appears when I edit the article. When I add…
jstuardo
  • 3,901
  • 14
  • 61
  • 136