Line numbers in syntax tags?

We know you have an opinion on how things should be run around here. These are suggestions for the forums, and the website.This forum is not a place to ask for suggestions to your own coding (or otherwise) problems.

Moderator: General Moderators

nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

What about having a tabbed interface, highlighted with numbers in one tab, and plain jane code in the other... I've seen it used all over the place and it seems to work fairly decently (though it does double the size of the html for the code block)
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

I'd suggest a windowed interface: you can see the code in phpdn colours, without line numbers by default. Then, you can copy and paste the code into window #2 (your php editor) and see the code in your native colours with/without line numbers as you see fit.

I've already personally implemented this solution... but I'll leave it as an exercise for the reader ;-)

Sarcasm isn't intended maliciously - just having a bit of fun
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

Kieran Huggins wrote:I've already personally implemented this solution... but I'll leave it as an exercise for the reader ;-)
Excercise?!

Never!!!!!!!!!!
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

Exorcise the daemons! :twisted:
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

It would be awesome if we could have this: The one I was looking for automatically highlights all of the code when you click plain text but this one demonstrate well enough, what you can do.
Post Reply