Hello,
I propose a patch to add the possibility to have a title for block code.
Becareful, I have changed the regular expression that match attribut values for allow spaces. I don't know real effects.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | geshi_title.patch | 6.92 KB | sanpi |
| #2 | geshi_title_02.patch | 6.31 KB | sanpi |
| geshi-title.png | 19.85 KB | sanpi | |
| geshi_title.patch | 6.44 KB | sanpi |
Comments
Comment #1
soxofaan commentedInteresting idea, good work.
Some remarks, after giving it a first quick look:
I would avoid the if-construct by just putting the title in the md5 call:
md5($title . $source_code)this looks wrong:
$source_code_gets overwritten?Comment #2
sanpi commentedI would avoid the if-construct by just putting the title in the md5 call: md5($title . $source_code)
Great idea.
this looks wrong: $source_code_ gets overwritten?
Yes, but I misunderstood the inline mode. The new patch use the attribut as span title (let the mouse cursor on the code to show tooltip).
Comment #3
soxofaan commentedI tried the patch and it worked fine.
One minor issue: in your screenshot, the title is on a gray background (like the collapse link), but the patch does not contain the necessary CSS to make this happen.
Comment #4
sanpi commentedThe CSS style has been added.
Comment #5
soxofaan commentedadded filter tips
added tests
tweaked some minor things
and committed: http://drupal.org/cvs?commit=356912
thanks!