I added the Geshi Field to the default article that ships with Drupal but I cant get line numbering with it. The selection boxes for all enabled languages appear and do the formatting and highlighting perfectly but no line numbers.

I have the settings set for Fancy line numbers (10), external style sheet and have tried all of the output wrappers. THe only way I can get line numbers is if using filtered html or full html but then the user has to type the opening/closing tags for the language.... a small thing I know but it seems that if line numbering is enabled, the geshi field with the language selection box would just take care of it :D

Scenario I am desiring:
Article Title
Article Image
Article Body (full html with FCKeditor)
Article Code Block (unlimited # of Geshi Fields)
Tags
URL Alias

All standard except for added Geshi field.... problem is, if I use filtered html for the code blocks it works, but it defaults to the first item listed in text formats (filtered html).... yes, I can reorder those, but then the body field wont load the FCKeditor by default... see what I mean? Have hunted the official Geshi site and all the stuff in here but havent found any clues yet.... Official Geshi site is HUGE so maybe I need to spend a couple more hours... ehehe.... any clues, hints or outright fixes would be appreciated!!

Thank you for this module.... it's freakin awesome!

CommentFileSizeAuthor
#3 issue-1245852.patch12.23 KByukare
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

soxofaan’s picture

Title: Line numbering when using Geshi Field in content type. » Line numbering support for Geshi Fields
Version: 7.x-1.0 » 7.x-1.x-dev

Line numbering in GeSHi fields is indeed not supported at the moment

yukare’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
Category: Support request » Feature request

We could make the geshifield use the same settings as geshifilter, or maybe, add this settings for each field.

yukare’s picture

FileSize
12.23 KB

I did some work on it, but did not finish, so will keep the current work here as a patch and will continue latter.