Jump to content

Home

vB Code Suggestion


Recommended Posts

I believe there is a vB Code that allows one to display other Codes without activating them. What I mean is, something that lets readers see the bold tags without having the text between them bolded. I'm pretty sure the code is [noparse]...text...[/noparse].

 

This would make it easier to show new members how to use the vB Code tags without having to put spaces in them. It's not a major problem that willl being the end of the forums, I know, but it would make things just that much more convenient. Could this tag be activated, or is it not available for some reason?

Link to comment
Share on other sites

I think what you're looking for is:

 

[b]This[/b]
[url=http://www.lucasforums.com/]This[/url]
[img=http://static.lfnetwork.com/lucasforums.com/images/default/lf_menulogo_top.gif]

 

It is the

 tag, which is prompted by the following icon: 
Link to comment
Share on other sites

You just have to wrap it all in [HTML] and [/HTML] tags. Ironically, the only tag that you can't actually include unparsed within the HTML tags is the HTML tag itself; otherwise, I'd show you. ;)

 

The easiest way is to just write out the VBCode as usual, highlight the bit that you don't want to be parsed, and then hit the icon I showed above.

 

I have to confess, though, the HTML tag isn't really designed specifically for showing unparsed VBCode. Its actual use is to colour code real HTML if you enter it in there, which I guess is useful for web developers and such; since it's rarely used, it does this secondary job pretty well too. ;)

Link to comment
Share on other sites

[code] still parses (most) vBcode; it's basically the same as

, except it's designed for displaying code and preserving the spacing — no colouring. Sadly, it doesn't inherit the same non-parsing trick. :~

[code][url=http://www.lucasforums.com/][b][i]Example![/i][/b][/url][/code]

Link to comment
Share on other sites

[code] still parses (most) vBcode; it's basically the same as
, except it's designed for displaying code and preserving the spacing...

Talking about preserving the spacing, the [cod[b][/b]e] tag automatically inserts a space after 50 characters. This can be quite annoying in the modding forums when you have to post some code. Is there anyway this could be fixed without too much trouble? It's not like it's likely to mess the forum layout as scroll bars are automatically added when it's too large.

Link to comment
Share on other sites

The reason it does it I'd assume is because words in posts are set to wrap at 50 characters to prevent stretchy tables; it seems to carry this setting into the vBcode too. I can't think of any quick solution to this, so you'd have to approach Matt about it, with him being the man of all things PHP.

Link to comment
Share on other sites

[code] still parses (most) vBcode; it's basically the same as
, except it's designed for displaying code and preserving the spacing — no colouring. Sadly, it doesn't inherit the same non-parsing trick. :~

[code][url=http://www.lucasforums.com/][b][i]Example![/i][/b][/url][/code]

Oh, I see... I stand corrected then ;)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...