A Non-Parse tag - Posted (897 Views)
Starting Member
robrjohnson
Posts: 10
10
Is it simple to add a tag that will prevent the forum software from parsing the content (e.g. )? It'd be easier than having to insert tags (open & close bold) inside something you're trying to demonstrate. The use would be similar to this:

[[b][/b]url="htt[b][/b]p://w[b][/b]ww.myurl.com"]My url[[b][/b]/url]<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Member Locked
laser
Posts: 3859
3859
It is simple, but it's probably just as easy to insert one tag inside another .... like this :

[url="http://www.v8central.com"]The best motor racing site[/url]<
Posted
Starting Member
robrjohnson
Posts: 10
10
That's what I did in the example above. It's fine for simple examples but not for extensive examples. It quickly becomes a pain.<
Posted
Retired Support Moderator
MarcelG
Posts: 2625
2625
I think I've build something that might just work. Check the function NoParse in my inc_func_common.asp (login demo/demo if you don't want to register)
It uses the CleanCode function, which afaik is in inc_func_posting.asp ; so, in order to get this to work, you might want to move that function from inc_func_posting.asp to inc_func_common.asp, ór include inc_func_posting.asp in all pages. It seems to be working ; demo: http://www.oxle.com/topic.asp?TOPIC_ID=3117 (also use login demo/demo if you don't want to register).<
Posted
Starting Member
robrjohnson
Posts: 10
10
Nice! I like the DOS window too!<
Posted
Retired Support Moderator
MarcelG
Posts: 2625
2625
Originally posted by robrjohnson
Nice! I like the DOS window too!
offtopic ; for the DOS window, check the function ReplaceCMDTags in inc_func_common.asp (used in FormatStr, right at the top), plus the style .codepre in inc_header.asp<
 
You Must enter a message