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

nicholasThompson - March 4, 2008 - 13:03

I would DEFINITELY second this one!

#2

soxofaan - March 6, 2008 - 17:22
Assigned to:Anonymous» soxofaan

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

soxofaan - April 5, 2008 - 23:40
Status:active» needs review

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

AttachmentSize
179097_geshifield.patch 7.48 KB

#4

Undefined.za - November 16, 2008 - 09:21

subscribing...

#5

eagereyes - November 17, 2008 - 15:24

The patch applies cleanly, but my modules page says that the GeShi CCK field is incompatible with Drupal 6.6.

#6

soxofaan - November 17, 2008 - 15:43

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

eagereyes - November 17, 2008 - 16:37

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

likewhoa - April 11, 2009 - 22:17

subcribing

#9

soxofaan - May 23, 2009 - 09:55
Version:5.x-2.x-dev» 6.x-1.x-dev
Status:needs review» needs work

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

wgrunberg - June 24, 2009 - 22:06

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

soxofaan - June 26, 2009 - 00:46
Status:needs work» needs review

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

AttachmentSize
geshifield.tar_.gz 2.05 KB

#12

soxofaan - June 27, 2009 - 16:48

New version now with caching of the GeSHi filtering

Still some todo's left, but it is already functional

AttachmentSize
179097_geshifield-d6-02.patch 11.21 KB
 
 

Drupal is a registered trademark of Dries Buytaert.