Skip to content
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.

Display code in a beautiful way (by Geshi) within Moodle contents.

Notifications You must be signed in to change notification settings

enovation/moodle-filter_geshi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Syntax highlight filter based on GeSHi

It can highlight c,asm,bash,cpp,css,lisp,matlab,html4strict,php,pascal,xml
and many other languages (see list in geshi/geshi/)


To Install it:
    - Enable if from "Administration/Filters".

To Use it:
    - Enclose your code in <span syntax="langname"> </span>
    - There are some options available:
    - linenumbers="yes": Enable line numbers
    - example usage:
      <span syntax="langname" linenumbers="yes"></span>
    - Syntax attribute must come first, the others are optional
    - line numbers are off by default.

To modify colors:
     	- Go to file geshi/geshi/language_name.php, find there 'STYLES' array.
	- Make changes you wish.
	- NOT recommended!

Enjoy!
RGBeast, [email protected]
Nigel McNie, [email protected]

About

Display code in a beautiful way (by Geshi) within Moodle contents.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%