FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » Code Features
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Code Features [message #16693 is a reply to message #16691] Fri, 13 February 2004 01:29 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
It really comes down to a matter of preference and a situation.
For PHP code you have the [php] tag for syntax highlighting provided by PHP's own native highlight_string() function. However, in my experience this sometimes causes problem as the entered code when copied & pasted from the page does not always come out the same. Some browsers will paste the HTMLized code, which must be 'cleaned' before it can run to me this is a BIG annoyance.

So, then there is [code] tag which will output code without any alterations to make sure that you can safely copy & paste into your application and have it work with no additional effort.

More over, people may use [code] tag to show examples of how to use various forum tags etc... and making those tags valid inside [code] would leave them without means to do so.


FUDforum Core Developer
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: First post as description in topics RSS feed
Next Topic: Security option: profiles invisible to anon users
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 19:00:26 GMT 2024

Total time taken to generate the page: 0.04113 seconds