Forum Tag: [code]

Eorzea Time
 
 
 
言語: JP EN FR DE
日本語版のFFXIVPRO利用したい場合は、上記の"JP"を設定して、又はjp.ffxivpro.comを直接に利用してもいいです
users online
フォーラム » FFXIAH.com » News » Forum Tag: [code]
Forum Tag: [code]
 Fenrir.Scragg
Administrator
Offline
サーバ: Fenrir
Game: FFXI
user: Scragg
Posts: 2579
By Fenrir.Scragg 2011-08-01 17:36:15  
Code tag now has syntax highlighting. Just include the language as illustrated below. Post preview currently doesn't show the highlights.
Code xml
<variables>
<var name="LockTP">1</var>
<var name="Melee">1</var>
</variables>

<if advanced='"Melee" == "1"'>
<if advanced='"LockTP" == "1"'>
<action type="Disable" slot="main|sub|range" />
</if>
</if>

Code
Example:
[code=xml]

Code
Valid Langs:
applescript            
actionscript3 as3      
bash shell             
coldfusion cf          
cpp c                  
c# c-sharp csharp      
css                    
delphi pascal          
diff patch pas         
erl erlang             
groovy                 
java                   
jfx javafx             
js jscript javascript  
perl pl                
php                    
text plain             
py python              
ruby rails ror rb      
sass scss              
scala                  
sql                    
vb vbnet               
xml xhtml xslt html


Source: http://alexgorbatchev.com/SyntaxHighlighter/
[+]
 Cerberus.Wolfshadow
Offline
サーバ: Cerberus
Game: FFXI
Posts: 2269
By Cerberus.Wolfshadow 2011-08-01 17:38:01  
oh god I love it
[+]
 Quetzalcoatl.Xueye
Offline
サーバ: Quetzalcoatl
Game: FFXI
user: Sect
Posts: 6386
By Quetzalcoatl.Xueye 2011-08-01 17:44:02  
Thank you.

So much.
[+]
 Sylph.Zefyr
Offline
サーバ: Sylph
Game: FFXI
user: Zefyr
Posts: 196
By Sylph.Zefyr 2011-08-01 17:53:27  
Presumably it's just something supported by a lib you're using, but there are some pretty obscure languages on there. Makes me lol that you have support for applescript, pascal and erlang syntax highlighting on the ffxiah forums.
 Fenrir.Scragg
Administrator
Offline
サーバ: Fenrir
Game: FFXI
user: Scragg
Posts: 2579
By Fenrir.Scragg 2011-08-01 18:04:57  
Sylph.Zefyr said:
Presumably it's just something supported by a lib you're using, but there are some pretty obscure languages on there. Makes me lol that you have support for applescript, pascal and erlang syntax highlighting on the ffxiah forums.

yeah, it has an autoloader to just load what it needs on the page. So I figure why restrict it. No extra overhead to support Applescript. :)
 Odin.Godofgods
Offline
サーバ: Odin
Game: FFXI
Posts: 3995
By Odin.Godofgods 2011-08-01 18:06:39  
wish i understood any of that...
 Caitsith.Mahayaya
Offline
サーバ: Caitsith
Game: FFXI
user: Trebold
Posts: 3341
By Caitsith.Mahayaya 2011-08-01 18:35:43  
Code php
$scragg = "awesome";
if($scragg == "awesome")
echo "That's mighty interesting";

Code c
int main()
{
char *scragg = "awesome";
is_awesome(scragg);
return 1;
}

int is_awesome(char *inputstring)
{
if (strcmp(inputstring, "awesome") == 0)
return 1;
else
return 0;
}

Code coldfusion
<cffile action="read"
	file="C:\docs\reasonswhyscraggisawesome"
	variable="reasons">

<cfoutput>#reasons#</cfoutput>

^ Will likely bomb cause of how long it will run.
[+]
 Ramuh.Krizz
Offline
サーバ: Ramuh
Game: FFXI
user: Krizz
Posts: 23561
By Ramuh.Krizz 2011-08-01 18:46:46  
lol, win
 Ifrit.Eikechi
Offline
サーバ: Ifrit
Game: FFXI
user: Eike
Posts: 5779
By Ifrit.Eikechi 2011-08-01 19:26:22  
Odin.Godofgods said:
wish i understood any of that...
 Fenrir.Scragg
Administrator
Offline
サーバ: Fenrir
Game: FFXI
user: Scragg
Posts: 2579
By Fenrir.Scragg 2011-08-08 22:24:34  
Code php
<?
echo base64_decode("Q29kZSByZW5kZXJpbmcgc2hvdWxkIHdvcmsgb24gcG9zdCBwcmV2aWV3cy4=");
?>
 Sylph.Kimble
Offline
サーバ: Sylph
Game: FFXI
Posts: 2912
By Sylph.Kimble 2011-08-08 22:27:21  
Sticky menus are gone?

Well weird, they are still there but doesnt work when veiwing this thread, lol.