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 #16696 is a reply to message #16693] Fri, 13 February 2004 04:30 Go to previous messageGo to previous message
Anonymous   United States
Ilia wrote on Thu, 12 February 2004 20:29


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.



Well, at least that is a better argument than "they are too stupid so we will protect them."

But I contend that most of the folks using the CODE tag are not posting sections of code into Word/Excel, etc but into to text editors - which strip away any HTML junk anyway.

The argument that you make applies much more to the QUOTE tag than the CODE tag. That is where all the underlying FUDCODE wreaks havoc when posting into Word/Excel etc.

Ilia wrote

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.



Alas, that is what you so ably point out is what the NOTAG tag is for. Couldn't they just do the following with the NOTAG tag???

Code

Text Styling
There are a number of tags which you can use to style text, they are:

[b]bold [/b] produces bold text
[u]underline [/u] produces underlined text
[i]italic [/i] produces italicized text
[sub]subscript [/sub] produces subscript text
[sup]superscript [/sup] produces superscript text
It is also possible to control color/size and even font face.

[color=red]red text [/color] produces red text
[size=4]big text [/size] produces text in the specified size
[font=courier]text [/font] produces text using the named type face





So couldn't those who want to insure that there are no underlying HTML stuff use the NOTAG tag???

As it is those folks have the NOTAG and the CODE tags to do what they want and for those of us who want to highlight parts of code, we cannot use either - we have nothing.

They get two tags to do what they need. We get none to do what we need.



[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: Tue Nov 26 05:30:47 GMT 2024

Total time taken to generate the page: 0.04068 seconds