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

GeSHI new language

I running a mediawiki and want to use syntax highlighting. I am using the extension https://www.mediawiki.org/wiki/Extension:SyntaxHighlight for that. That works pretty fine. Alas I want to highlight a language that is not part of this extension. So…
Martin
  • 852
  • 7
  • 20
0
votes
1 answer

PHP GeSHi highlight large string

I am using PHP library GeSHi to highlight XML files content. It works fine for small files. But when I want to highlight big file (200k lines) an error occurs: Allowed memory size of 536870912 bytes exhausted... How I did it: $xmlContent =…
Meadow Lizard
  • 330
  • 2
  • 7
  • 19
0
votes
1 answer

Enable copy and paste of highlighted code in Joomla wiki

I'm looking at the tutorial pages covering the development of a component within Joomla. In the sections of code there are lines highlighted with a yellow background which indicate the lines of code which are new / changed from the previous step in…
Robbie Jackson
  • 268
  • 2
  • 6
0
votes
3 answers

Advice for implementing simple regex (for bbcode/geshi parsing)

I had made a personal note software in PHP so I can store and organize my notes and wished for a nice simple format to write them in. I had done it in Markdown but found it was a little confusing and there was no simple syntax highlighting, so I…
John
  • 1,110
  • 3
  • 14
  • 28
0
votes
1 answer

Want to highlight 'Mediawiki Syntax' on a Mediawiki page

I've been asking Goodle and Stackoverflow variation of this query: Syntax highlighting of mediawiki syntax almost without exception I'm getting hits referring me to the Mediawiki Extension:SyntaxHighlight page. Unfortunately that is the question…
will
  • 4,799
  • 8
  • 54
  • 90
0
votes
1 answer

GeSHi single like link

Is it possible to instruct GeSHi (http://qbnz.com/highlighter/) to generate link to single line. For example if I show highlighted code on 'example.com/my-code' URL, I would like to be able to have link like: 'example.com/my-mode#line-69' or…
justme
  • 3
  • 1
0
votes
1 answer

Error in syntax highlighter js file

I'm using this code to highlight my "Lua" codes: SyntaxHighlighter.brushes.Lua = function() { var keywords = 'break do end else elseif function if local nil not or repeat return and then until while this'; var funcs = 'math\\.\\w+ string\\.\\w+…
0
votes
1 answer

Syntax Highlighting with mod_dav_svn

I am looking for a simple way to present code in the browser via Apache's mod_dav_svn Subversion module that is syntax highlighted (my instance is Ruby, but it shouldn't matter since mode of these modules support all the major languages). Does…
GL2014
  • 6,016
  • 4
  • 15
  • 22
0
votes
1 answer

jQuery Ajax $.post issue : char "+" disappear

I'm working on a wysiwyg and a section to insert source code like PHP/HTML/Perl/etc... I use de PHP Geshi for highlight the code via jQuery. Everything work well, I get my code well but I lost the char "+" in the returned code. I think the problem…
Pierre
  • 1
  • 1
0
votes
1 answer

Some problems in insertion of code snippet inside Joomla articles

I am using Joomla 2.5 for my technical blog. In my articles I put some code snippet using the preinstalled Code Highlighter (GeSHi) plugin. So, I insert a code snippet in the following way: I open my editor in HTML mode and I put inside it the…
AndreaNobili
  • 40,955
  • 107
  • 324
  • 596
0
votes
0 answers

How can PHP detect paragraphs and add

tags for HTML output

How do I make PHP detect paragraphs and add and parse tags for HTML output? I'm making a blog with bbcode support but I'm still missing the tags in the HTML output of the blog posts. How can I make PHP detect and add tags on it's output? I have…
Th3Alchemist
  • 1,161
  • 2
  • 13
  • 25
0
votes
2 answers

Detect code for GeSHi

I'm making a blog from scratch in PHP + MySQL, where I will sometimes post lines of PHP codes for tutorials and so on... So, I installed the GeSHi class in my project. But since I will write my blogs/articles in normal text format, I will write up…
Th3Alchemist
  • 1,161
  • 2
  • 13
  • 25
0
votes
2 answers

How do I install and use Wordpress GeSHi - Generic Syntax Highlighter

Can anyone recommend how to install and use wordpress.org GeSHi syntaxhighlighter? I'm looking for start-to-end directions in one place, not a link that refers to info in 8 other "prerequesite" knowledge links.
Lill Lansey
  • 4,775
  • 13
  • 55
  • 77
1 2
3