953,971 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

suggestion for [code]

Hi,

I hope this is the right forum to post this. Anyways, I have greatly enjoyed and profited from the forum, so thanks to all who make it work.

I have one small quibble that would be lovely to address if it's possible. There are currently [code] and [php] tags that allow display of generic code and php code, respectively. It would be really wonderful if there were a [python] tag that would display Python code with an IDLE-like color scheme.

Thanks, and keep up the good work.
Jeff

jrcagle
Practically a Master Poster
608 posts since Jul 2006
Reputation Points: 92
Solved Threads: 156
 

You can do [code=python] [code=c] [code=cplusplus] [code=asp] and everything will be color coded.

It works for any language that is in www.daniweb.com/code/

cscgal
The Queen of DaniWeb
Administrator
19,420 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

Talk about prompt service! :lol:

Thanks,
Jeff

jrcagle
Practically a Master Poster
608 posts since Jul 2006
Reputation Points: 92
Solved Threads: 156
 

Hehe ... it's been a feature here for quite awhile, actually :)

cscgal
The Queen of DaniWeb
Administrator
19,420 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

I have been looking for something like this for so long.

Now, I know there isn't really strict coloring for css but is there anyway we could have a code property for it?

roryt
Nearly a Posting Virtuoso
1,286 posts since Oct 2005
Reputation Points: 178
Solved Threads: 15
 

I'm not sure what you mean. Just do [code=css]

cscgal
The Queen of DaniWeb
Administrator
19,420 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 
It works for any language that is in www.daniweb.com/code/
...css but is there anyway we could have a code property for it?
I'm not sure what you mean. Just do [code=css]

But the odd thing is that css isn't listed in the code snippets library... that's probably why he requested it.

John A
Vampirical Lurker
Team Colleague
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
 

Ah ... CSS support is available, it's just that no one has submitted any CSS code snippets yet.

cscgal
The Queen of DaniWeb
Administrator
19,420 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

Hint hint Rory :)

happygeek
Freelance Word Punk
Administrator
27,456 posts since Mar 2006
Reputation Points: 1,457
Solved Threads: 54
 
But the odd thing is that css isn't listed in the code snippets library... that's probably why he requested it.


That is why, because it isn't in the code library.Hint hint Rory :)

I posted a tutorial on styling text fields the other day. Sorry it wasn't a code snippet. I will try and think of one and post it;)

roryt
Nearly a Posting Virtuoso
1,286 posts since Oct 2005
Reputation Points: 178
Solved Threads: 15
 

I have heard that daniweb now has a css code snippet. It is a bit of a long one as well. (i couldn't think of anything that was small that was interesting);)

roryt
Nearly a Posting Virtuoso
1,286 posts since Oct 2005
Reputation Points: 178
Solved Threads: 15
 

Way to go Roryt...:D

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 732
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You