CodeToggle syntax highlighting module for Drupal 7.x
JavaScript PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
codetoggle.css
codetoggle.info
codetoggle.js
codetoggle.module
readme.md
sample.png

readme.md

Sample Markup:

[codetoggle]
[section id=php name=PHP brush=php]
<?php

print("Hello World!");
[/section]
[section id=python name=Python brush=python]
print "Hello World"
[/section]
[/codetoggle]

See sample.png (https://github.com/jsjohnst/drupal_codetoggle/raw/master/sample.png) for an example of the look and feel.

Requires:

http://alexgorbatchev.com/SyntaxHighlighter 3.0+

License

Copyright 2011 Jeremy Johnstone

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.