Geshi Source Code CCK Field
Rob Loach - September 27, 2007 - 13:10
| Project: | GeSHi Filter for syntax highlighting |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | soxofaan |
| Status: | needs review |
Description
Provide a geshifield.module that would hook into CCK's Field and Widget API to provide a Geshi Field. This would be much more powerful than the geshinode.module because it would allow you to have multiple sources provided with the content type, provide source code to arbitrary content types (like the Project module), have the field required, limit the source code field to one language, etc.

#1
I would DEFINITELY second this one!
#2
indeed,
this one is at the top of my priority list for GeSHi filter.
I already started working on it, but it's not ready yet.
stay tuned
#3
Here is a first iteration of the GeSHi CCK field
it's a basic version, without the bells and whistles, but it should be already usable.
be welcome to try it out
#4
subscribing...
#5
The patch applies cleanly, but my modules page says that the GeShi CCK field is incompatible with Drupal 6.6.
#6
The patch is indeed for the Drupal5 version of the module.
When working on this patch, CCK for Drupal6 was still in alpha/beta mode.
I'm not familiar with Drupal6 CCK development (yet), but as far as I understand, there are significant changes between Drupal5 CCK and Drupal6 CCK.
I would like to first finalize the Drupal5 version of this patch before starting on the drupal 6 version.
So if you want to try it out, you'll have to crack open a can of Drupal 5 ;)
#7
Ah, i see. Well I can't go back to Drupal 5, but I'd be willing to test a version (even if early alpha) for D6. Also, by now I would guess most people would have switched to D6, so you'd reach a lot more people with a D6 version.
#8
subcribing
#9
Drupal 6 usage has grown significantly since the latest patch in this thread,
so I think this issue should also shift to Drupal 6.
#10
I have not found a satisfactory way of making FCKeditor and GeSHi coexist.
A CCK GeSHi field for Drupal 6 sounds like a great way of avoiding WYSIWYG conflicts, Also, I wouldn't have to add a GeSHi input filter that will affect all my content types and not just the ones that I need syntax highlighting.
As an interim solution, how can I duplicate the geshinode.module content type?
#11
Here is a first draft for Drupal 6/CCK2
The basic stuff is works, but there is still room for improvement (like most importantly: caching the syntax highlighted code).
I'd also like some other people try it out and give feedback.
Interested people with git in their tool belt can follow the development more closely at http://github.com/soxofaan/geshifilter-dev/tree/geshifield-d6
#12
New version now with caching of the GeSHi filtering
Still some todo's left, but it is already functional