ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > Living Room

Request: fixes for geshi syntax formatter

(1/2) > >>

f0dder:
The code syntax highlighter used on DC is very nice, but: copy-pasting from it is hell because of line numbering. A "place contents in clipboard" button for code blocks would be nice. And an option to specify number of spaces per tab would also be nice, if it's not already available...

Yeah I know, should probably be a request somewhere on SMF forum/mod page somewhere, but I can't be arsed to sign up for yet another forum :)

urlwolf:
+1

Lashiec:
Use Opera, it does not have that problem ;D

f0dder:
Use Opera, it does not have that problem ;D
-Lashiec (January 07, 2008, 12:17 PM)
--- End quote ---
Opera doesn't copy line-numbers?

I wonder if that's a bug or a feature or correct handling of the HTML :)

jgpaiva:
No, selection on opera is done correcly, one space after the number.

For example, line numbers look nice, but when you go to select the code in your browser to copy it? You got the line numbers too! Not such a good thing, but thankfully this issue is now solved.
-http://qbnz.com/highlighter/geshi-doc.html#line-numbers
--- End quote ---
From the above quote, i think it means this is the correct behaviour ;)

Navigation

[0] Message Index

[#] Next page

Go to full version