Jump to content

CodeCall Forum "Markup Language" ?

- - - - -

  • Please log in to reply
24 replies to this topic

#1
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
I'm using the medium/simple editor mode.

So far, I know [CODE], [QUOTE=username], [IMG=url-of-image], [COLOR="#color-code"], [FONT=font-face], [SIZE=font-size], [LIST=start-from-if-ordered-list] (and [*]), [URL=link-url], and I think there was an attachment tag, but I forgot how to use that one.

(Note, gray text = optional)

What are the other tags for this "forum markup language" stuff?

#2
Vaielab

Vaielab

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 547 posts
This forum is a vbulletin forum, so I guess we can use thoses tags
vBulletin.org Forum - vB Code List

#3
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
Wait, those tags don't have to be in caps? This would work?:

[code]print "Hello World!\r\n"; [/cOdE]

#4
Vaielab

Vaielab

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 547 posts
Only one way to know for sure

Test
Test


---------- Post added at 11:41 AM ---------- Previous post was at 11:41 AM ----------

Guess they don't have to be cap after all!

#5
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
I wonder about the formatting within CODE tags. Let's try it.

test

[FONT=Georgia][[/FONT]/CODE[FONT=Georgia]][/FONT]

[B]bold[/B]

[I]italic[/I]

[U]underlined[/U]


[S]strikeout[/S]


[SIZE=24]24-sized[/SIZE]

[SIZE=7]7-sized[/SIZE]


[COLOR="#DDAA88"]I'm sure COLOR works because I used it within CODE tags before.[/COLOR]


[IMG]http://www.google.com/intl/en_com/images/srpr/logo3w.png[/IMG]


[URL="http://www.google.com/intl/en_com/images/srpr/logo3w.png"]a link[/URL]


[quote name='RhetoricalRuvim']...

caps?

...[/QUOTE]


Okay, I think that's enough testing for now. 






EDIT: For some reason, strikethrough tags don't seem to work at all, even though that vBulletin page did have the S tag. But other than that, it seems to work fine.

#6
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java
I use to [strike]strike text.

#7
Vaielab

Vaielab

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 547 posts
By the way, how do you write word like strike inside [] without doing an actual strike?

#8
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java
I just didn't close the tag...

#9
Vaielab

Vaielab

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 547 posts
Good to know

Test: [CODE]...

#10
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
I got a better idea. What if you can't not close the tags? I use the same method to stop smily-faces, like this :), or otherwise they'll become faces :)

I use this:
[FONT=Georgia][[/FONT]CODE[FONT=Georgia]][/FONT]...testing...[FONT=Georgia][[/FONT]/CODE[FONT=Georgia]][/FONT]





I wrote a quick program, right now, that does the conversion from regular text to non-tag vBulletin code:
[noparse]<html> 

	<head> 

		<title> Text To vBulletin </title> 

	</head> 

	<body> 

		<h1> Text To vBulletin </h1> 

		Source Text: <BR> 

		<textarea id="text" cols="80" rows="10"></textarea> <BR> <BR> 

		Destination Code: <BR> 

		<textarea id="dest" cols="80" rows="10"></textarea> <BR> <BR> 

		<button onClick="document.getElementById('dest').value= ignore_tags (document.getElementById('text').value);"> 

			Convert 

		</button> 

		<script type="text/javascript"> 

			function ignore_tags (text){ 

				var a= text.split("["); 

				var i; 

				for (i= 0; i < a.length; i++) a[i]= a[i].split("]").join("[FONT=Georgia]][/FONT]"); 

				return a.join("[FONT=Georgia][[/FONT]"); 

			} 

		</script> 

	</body> 

</html> [/noparse]

Edited by RhetoricalRuvim, 05 February 2012 - 02:49 PM.


#11
lethalwire

lethalwire

    while(false){ ... }

  • Members
  • PipPipPipPipPipPipPip
  • 748 posts
  • Programming Language:Java, PHP
  • Learning:Java, PHP
I'd like to see something like:
[code=java/cpp/c/js/ruby]
After setting this attribute, the keywords/braces/symbols/etc in these languages would be color coded for easier reading.

#12
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
  • Location:New York, NY
FYI - there is a noparse tag that will prevent bbcode from being parsed.
[noparse]Lorem ipsum dolor sit amet[/noparse]

[noparse][noparse]Lorem ipsum dolor sit amet[/noparse][/noparse]




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users