How to Post Code in a Blog posting??
jasonfnorth - December 1, 2008 - 21:05
I've searched everywhere for this simple solution, and can't find it. I first tried installing the FCKeditor which kept failing miserably, so I uninstalled that. What solutions do you guys recommend for rich text editing on a blog post, and some tags to post code, etc...
Thanks,
Jason

Any advice would be greatly
Any advice would be greatly appreciated by this newb.
Geshi Filter
Take a look at the Geshi filter module. http://drupal.org/project/geshifilter
I had a need to add a unsupported language and found Geshi itself to be very easy to customize.
The module works very well.
I tried that and it doesn't
I tried that and it doesn't work either. Surely I'm doing something wrong, but I installed it, and as you can see in this post I tried, the syntax is not being highlighted.
http://www.good-crm.com/?q=node/19
Isn't there just a simple solution, that displays PHP code (or APEX code in my example) like in this post?
http://drupal.org/node/71797
< code > and < blockcode > are not working.
It looks like I got it
It looks like I got it working. The instructions for GeSHi, do not tell you to configure the INPUT FORMAT.
Thanks everyone!
PS: I wish I could get FCKeditor working, but I've spent hours and hours trying to install that beyotch, with no luck whatsoever.
I'm using BBCode and
I'm using BBCode and Quicktags because I don't have a need (yet) for FCK or TinyMCE. One of my sites have TinyMCE but that is very low usage and basically only one user uses it.
Good luck
About code, the simplest
About code, the simplest solution which is used in drupall.org is http://drupal.org/project/codefilter
About wysiwyg, it depends on your Drupal version. TinyMCE used to be the best solution in D5, but now it has been neglected for a long time and FCKeditor, which has very active development, seems to be the best solution for D6. This reflects clearly on their usage statistics.
Whatever you choose, be very thorough with every last detail of their installation instructions.
You don't say which version
You don't say which version of drupal you're talking about-- but I've just started using fckeditor exclusively. The current version of fckeditor with the drupal module is amazingly good and easy to configure-- it's bye bye tinymce for me, finally.
I've also just found an fckeditor plugin for the geshifilter but i haven't had a chance to take it for a spin yet.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
PS: I installed the latest
PS: I installed the latest Drupal 1 week ago.
Getting fckeditor working
Getting fckeditor working was pretty straight forward-- post back with some more details if you want to try and troubleshoot it.
The thing that got me hung up was installing the fckeditor itself (it's a 2 step install process) into the right subdirectory of the module. once i figured that out, it just worked.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz