> > Request

Code highlighting in documentation

Summary

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

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:Already implemented...

11 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

guest:

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

<!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:I don't get it...

11 years ago

Is the above comment some kind of hint?

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

11 years ago

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

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

11 years ago

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:GeSHI

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: