Jump to content

code tags

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
TALucas

TALucas

    Learning Programmer

  • Members
  • PipPipPip
  • 91 posts
I've noticed the code tag being used on the forums.
System.out.println("Hello World!");

and PHP code tag
print "<p>Thank you for using the progam</p>";


Are there any other language specific tags available?
Your thoughts are the architects of your destiny.
[SIGPIC][/SIGPIC]

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Yes, you can use [noparse]
.....
tags and any supported value by GeSHi:

[highlight="lang"] // Code Here [/highlight][/noparse].

For example, if you want to use "C" language pass C where "lang" is:

[highlight="c"]
#include<stdio.h>

int main()
{
printf("Hello World\n");
return 0;
}
[/highlight]

#3
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
There is the [NOPARSE][HTML][/NOPARSE] tags and [NOPARSE][HIGHLIGHT][/NOPARSE] tags, with an extra parameter.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums