Forum Tag: [code]

Language: JP EN DE FR
users online
Forum » FFXIAH.com » News » Forum Tag: [code]
Forum Tag: [code]
 Fenrir.Scragg
Administrator
Offline
Server: Fenrir
Game: FFXI
user: Scragg
Posts: 2579
By Fenrir.Scragg 2011-08-01 17:36:15
Link | Quote | Reply
 
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
Server: Cerberus
Game: FFXI
Posts: 2269
By Cerberus.Wolfshadow 2011-08-01 17:38:01
Link | Quote | Reply
 
oh god I love it
[+]
 Quetzalcoatl.Xueye
Offline
Server: Quetzalcoatl
Game: FFXI
user: Sect
Posts: 6386
By Quetzalcoatl.Xueye 2011-08-01 17:44:02
Link | Quote | Reply
 
Thank you.

So much.
[+]
 Sylph.Zefyr
Offline
Server: Sylph
Game: FFXI
user: Zefyr
Posts: 196
By Sylph.Zefyr 2011-08-01 17:53:27
Link | Quote | Reply
 
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
Server: Fenrir
Game: FFXI
user: Scragg
Posts: 2579
By Fenrir.Scragg 2011-08-01 18:04:57
Link | Quote | Reply
 
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
Server: Odin
Game: FFXI
Posts: 4013
By Odin.Godofgods 2011-08-01 18:06:39
Link | Quote | Reply
 
wish i understood any of that...
 Caitsith.Mahayaya
Offline
Server: Caitsith
Game: FFXI
user: Trebold
Posts: 3341
By Caitsith.Mahayaya 2011-08-01 18:35:43
Link | Quote | Reply
 
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
Server: Ramuh
Game: FFXI
user: Krizz
Posts: 23561
By Ramuh.Krizz 2011-08-01 18:46:46
Link | Quote | Reply
 
lol, win
 Ifrit.Eikechi
Offline
Server: Ifrit
Game: FFXI
user: Eike
Posts: 5779
By Ifrit.Eikechi 2011-08-01 19:26:22
Link | Quote | Reply
 
Odin.Godofgods said:
wish i understood any of that...
 Fenrir.Scragg
Administrator
Offline
Server: Fenrir
Game: FFXI
user: Scragg
Posts: 2579
By Fenrir.Scragg 2011-08-08 22:24:34
Link | Quote | Reply
 
Code php
<?
echo base64_decode("Q29kZSByZW5kZXJpbmcgc2hvdWxkIHdvcmsgb24gcG9zdCBwcmV2aWV3cy4=");
?>
 Sylph.Kimble
Offline
Server: Sylph
Game: FFXI
Posts: 2912
By Sylph.Kimble 2011-08-08 22:27:21
Link | Quote | Reply
 
Sticky menus are gone?

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