The Lizard Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsCommunityThe Lizard Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 14th, 2003, 06:46 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Article Postings: Code Styles

Hey all!

I wanted to bring this to the public's attention, and get some feedback and suggestions from everybody, as it concerns all who read the articles.

I've been thinking for the past couple of weeks on how we could improve the articles that get posted on the site. The first thing I realized is that maybe the code samples within the articles need to be changed.

I'm putting this up for public suggestion... What changes would you like to see made to the style of the code within the articles (currently black font w/ a yellow background).

I'm open for suggestions... So get 'em in while you can!
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #2  
Old November 14th, 2003, 08:50 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
How's about putting the code in <code> or <pre> tags. Maybe use a smaller font size, but stick with Courier.

I find this method of code presentation pretty easy on the eyes: http://css.maxdesign.com.au/listamatic/vertical01.htm
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old November 17th, 2003, 08:08 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Yeah, I think doing something pretty close to what appears in the forums'd ease readability. And, for that matter, you could even use a forum posting to format the code for you, pasting from the forum into the article.

Reply With Quote
  #4  
Old November 17th, 2003, 02:37 PM
BonoDeBeer BonoDeBeer is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Arnhem, Netherlands
Posts: 1 BonoDeBeer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The printable pages contain far too many <BR>s; I always have to manually edit the code to save paper. The stylesheet for printable pages should definitely be amended.

Reply With Quote
  #5  
Old November 17th, 2003, 11:49 PM
wAr-AnGeL wAr-AnGeL is offline
Forum Security
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Behind You
Posts: 479 wAr-AnGeL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 50 sec
Reputation Power: 7
Send a message via ICQ to wAr-AnGeL Send a message via AIM to wAr-AnGeL
I would like to see code color-coded. I guess that's what stumpy meant by putting them inside a <code> tag?

Reply With Quote
  #6  
Old November 28th, 2003, 07:43 AM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via Yahoo to fakker
isnt there a PHP function to make the code pretty colours? I'm not sure, but I think I've seen it someplace?

maybe phpbuilder not sure!!

Reply With Quote
  #7  
Old November 29th, 2003, 07:18 AM
wAr-AnGeL wAr-AnGeL is offline
Forum Security
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Behind You
Posts: 479 wAr-AnGeL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 50 sec
Reputation Power: 7
Send a message via ICQ to wAr-AnGeL Send a message via AIM to wAr-AnGeL
i'm pretty sure i saw a custom function that did that

Reply With Quote
  #8  
Old December 2nd, 2003, 01:44 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
fakker,

Is there a function that you know of? I'm only aware of the .phps extension given to files which causes the PHP parser to colorize the code. I'm sure it makes use of an available function. If you know, please advise!

My only concern, however, with using the PHP colorizer, is that not all of our articles are PHP related. What about non-PHP code within articles?

BonoDeBeer: Has the printing problem been corrected with the site changeover?

DHouston: that's not a bad idea, although it does add an extra, and somewhat lengthier, step to the process... I'll look into that though!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsCommunityThe Lizard Lounge > Article Postings: Code Styles


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT