Code highlighting in documentation / #3847

Summary

open
Jan 18, 2007
Jan 18, 2007 / guest
May 16, 2008 / pixtur
 

Attached files

No files uploaded
hey!
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?

8 Comments

pixtur

Jan 19, 2007
Already implemented...
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 Config variables

guest

Apr 17, 2007
version 2
View comment
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 <head>
  <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;}
  </style>
  <script type="text/javascript">
   onload = function() {
    	// do something
   };
  </script>
 </head>
 <body>
  <p>Hello&nbsp;World!</p>
 </body>
</html>

pixtur

Apr 18, 2007
I don't get it...
Is the above comment some kind of hint?

barlas

Apr 19, 2007
Reply to I don't get it...
I think he is just trying to test "code highlighting"

pixtur

Apr 19, 2007
Antwort auf Reply to I don't get it...
I thought he was suggesting to give credits to Dean Edwards, who actually wrote the "star light":

dean.edwards.name/my/behaviors/#star-light.htc

guest

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

pixtur

May 15, 2008
good suggestion...
needs to be reviewed

pixtur

May 16, 2008
evaluated geshi...
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:
 

Comment / Update