Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
How not to display source code
Old 11-14-2008, 07:14 PM How not to display source code
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
http://snipplr.com/view/2383/copy-selected-text/

This little tutorial was extremely helpful to me, and yet the person who made it should be shot. Or flogged, or something.

Each line of code is wrapped in a list item element. That's great, in the sense that it allows line numbers to be displayed. Not so great when you want to copy the code, ie to the clipboard and then your IDE.

There must be some form of auto line numbers, right? A way to style the code element to do that?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-14-2008, 08:57 PM Re: How not to display source code
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Good Lord, that IS annoying. There must be a way to do that better. Will have to think about it. His code is a stylish<ol> inside of a <pre>, and though I've never noticed this before, I guess that just copies by default to the clipboard with the numbers attached. There must be a better way. I agree that having the numbers does look better.

I looked briefly around the web at sites I knew with styled code, but in a few brief minutes, I didn't find anything else that was numbered like that.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 11-14-2008, 09:13 PM Re: How not to display source code
Mark Henderson's Avatar
Extreme Talker

Posts: 207
Name: Mark Henderson
Location: Yorkshire
Trades: 0
just click plain text. top right of the box.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
- Affordable Web/Graphics Design -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
ify - WHOIS Lookup, reverse IP, traceroute and more!
Mark Henderson is offline
Reply With Quote
View Public Profile Visit Mark Henderson's homepage!
 
Old 11-15-2008, 07:29 AM Re: How not to display source code
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by Mark Henderson View Post
just click plain text. top right of the box.


well spotted Mark


(I missed it as well)
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-15-2008, 08:42 AM Re: How not to display source code
anand_chauhan's Avatar
Average Talker

Posts: 18
Trades: 0
Quote:
Originally Posted by Learning Newbie View Post
http://snipplr.com/view/2383/copy-selected-text/

This little tutorial was extremely helpful to me, and yet the person who made it should be shot. Or flogged, or something.

Each line of code is wrapped in a list item element. That's great, in the sense that it allows line numbers to be displayed. Not so great when you want to copy the code, ie to the clipboard and then your IDE.

There must be some form of auto line numbers, right? A way to style the code element to do that?
would u please let me know the address of the tutorials u are talking abt???
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
anand_chauhan is offline
Reply With Quote
View Public Profile
 
Old 11-15-2008, 08:47 AM Re: How not to display source code
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
I have to wonder sometimes if it's me !!
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-15-2008, 12:08 PM Re: How not to display source code
Mark Henderson's Avatar
Extreme Talker

Posts: 207
Name: Mark Henderson
Location: Yorkshire
Trades: 0
Thanks. I honestly don't know how anyone could miss that, it's the first place i looked! Hehe.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
- Affordable Web/Graphics Design -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
ify - WHOIS Lookup, reverse IP, traceroute and more!
Mark Henderson is offline
Reply With Quote
View Public Profile Visit Mark Henderson's homepage!
 
Old 11-15-2008, 11:39 PM Re: How not to display source code
Skilled Talker

Posts: 55
Name: Mike
Trades: 0
Just curious, couldn't you include a ton of PHP files with the actual HTML on one of them (and nothing in the others)? They'd be searching for hours for which one the source was in. Or can you not do that? (Uber loading times).
HWolfpack6 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How not to display source code
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31828 seconds with 12 queries