Syntaxhighlighter Drupal module
八月 12th, 2009 | posted by Alpha Epsilon Delta
in
This module integrates the SyntaxHighlighter Javascript Library into Drupal for source code list syntax highlighting within any Drupal contents. All source code listing on this site is done with this module. See my article about this module here.







<?php phpinfo(); ?>
feature suggestion/request
First off, great module! Really a great module for any site that needs to post code.<br>
I wanted to suggest either an addon to this module or a new cck field module that creates a textarea in a content type that is specifically for code and does not require the {syntaxhighlighter} tags. The tags are great for inline text but are rather inconvenient for users when you have a content type that is specifically for posting code.
You can use the pre tag anywhere
So in any place where you want highlighted code to appear, you can use the Syntaxhighlghter's <pre> tag format. So you can just do this:
This way you can have code anywhere, not limited to where you put the CCK field.
I've thought about this and this is the way I intent this module to work.
If you have better idea, please let me know.
發表新回應