Posts Tagged wordpress-plugin
Wordpress Plugin SyntaxHighlighter Test On ActionScript 3
Posted by brianr in actionscript, wordpress on June 29th, 2009
This is a test post to determine if I like SyntaxHighlighter as a source code plugin for Wordpress. Here’s two ActionScript 3 examples:
private var foo:Bar = new Bar();
/**
* Web App Solution Confidential Information
* Copyright 2009, Web App Solution, Inc.
*
* @author Brian Riley
* @date June, 29, 2009
*/
package com.wasi.test
{
import com.wasi.test.interfaces.IFooBar;
/**
* This class rocks my world.
*/
public class Foo extends Bar implements IFooBar
{
/**
* Constant happy value.
*/
public var myLongString:String = "this is a really, really long string to illustrate what happens when one line of code is tooooo long";
/**
* Constant happy value.
*/
private static const MY_CONST:String = "myPrivateStaticConstant";
/**
* Constructor.
*
* param myFoo A String vlaue that's happy.
* param myBar A Number vlaue that's sad.
*/
public function Foo(myFoo:String, myFoo:Number)
{
// TODO
}
}
}
Just wrap your source code in the following syntax:
[sourceCodeAlias]
my source code
[/sourceCodeAlias]
where sourceCodeAlias = as3 or actionscript3. Here’s the full list of possible code syntax highlighters at your disposal.