Archive

Posts Tagged ‘document’

SyntaxHighlighterPro document

November 27th, 2009 9 comments

It is quite easy to use the wordpress plugin SyntaxHighlighterPro. You need just activate the plugin, and then assign the brush to the pre tag.
For example:

<pre class="brush:java">
public class HelloWorld{
    public static void main(String [] args) {
        System.out.println("Hello world!");
    }
}
</pre>

Then it will render the code as following:

public class HelloWorld{
    public static void main(String [] args) {
        System.out.println("Hello world!");
    }
}

In above example,java is the brush alias of the language.
You can also use the BBCode to insert the code, for example:

[java]
public class HelloWorld{
    public static void main(String [] args) {
        System.out.println("Hello world!");
    }
}
[/java]

Please enable BBCode support before using BBCode.

Please refer Brush Aliases for more details.

Autolinks Document

August 16th, 2009 2 comments

Autolinks is quite easy to use.

Just enable the plugin, and you can use it with the default settings.

Of cause, you can set up the setting by yourself.
Go to

/wp-admin/options-general.php?page=wp-autolinks.php

and you will find the following set up page.

Wordpress Plugin Autolink Setting

By now, there are three setting items.

  • Images title prefix:

    When images are lack of the title attribute, we will automatically generate one for the article.
    The generated title’s format is “Images title prefix”+”Article title”.
    By default, the “Images title prefix” is “Read article:”.
    Thus, Autolinks will generate “Read article: Autolinks Document” as this article’s image title.

  • Images alt prefix:

    By default, Autolinks will take the article’s title as the image’s alt attribute when they are lack of them. You can also set up a prefix for the images alt.

  • Only auto link for the first image:

    By default, Autolinks will automatically generate hyperlinks for all images in the article’s summary.
    You can only generate hyper link for the first image by setting “Yes”.