> > Request

Code highlighting in documentation


Jan 18, 2007
Jan 18, 2007 / guest
Jan 5, 2009 / phsouzacruz

Attached files

No files uploaded
after some work with docuwiki i think it would be very helpful to have the possibility to automatic highlight your php/perl/whatever code in strebers documentation. there some free classes/tools to realize such a job... what do you think?


pixtur:Already implemented...

12 years ago

As you can see on this installation, this features is already been included into streber.

from some example

/* comment */
function bla() {
 str = "laksjdf";
 return 2;

You have to enable the starlight syntax highlighting. Read more at


12 years ago (2. update 12 years ago) -

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <title>Sample HTML</title>

  <meta name="author" content="Dean Edwards"/>
  <!-- keeping code tidy!! -->
  <meta name="copyright" content="&copy; copyright 2005, Dean Edwards"/>
  <style type="text/css">
   body {color: black;}
  <script type="text/javascript">
   onload = function() {
    	// do something

pixtur:I don't get it...

12 years ago

Is the above comment some kind of hint?

barlas:Reply to I don't get it...

12 years ago

I think he is just trying to test "code highlighting"

pixtur:Antwort auf Reply to I don't get it...

12 years ago

I thought he was suggesting to give credits to Dean Edwards, who actually wrote the "star light":



10 years ago -

Why can't Streber use GeSHI (http://qbnz.com/highlighter/) for syntax highlighting like a lot of other Wiki's do? It would then work on other browsers too.

pixtur:good suggestion...

10 years ago

needs to be reviewed

pixtur:evaluated geshi...

10 years ago

I checked out geshi and I am really impressed. Since its also GPL we could easily add it to Streber. Starlight also has the problem, that it is pretty computing intensive.

Follow of: