|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
|||
|
|||
|
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.
|
|
#5
|
|||
|
|||
|
I would like to see code color-coded. I guess that's what stumpy meant by putting them inside a <code> tag?
|
|
#6
|
|||
|
|||
|
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!! |
|
#7
|
|||
|
|||
|
i'm pretty sure i saw a custom function that did that
|
|
#8
|
|||
|
|||
|
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! |
![]() |
| Viewing: Dev Articles Community Forums > Community > The Lizard Lounge > Article Postings: Code Styles |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|