Archive

Posts Tagged ‘wordpress plugin’

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.

SyntaxHighlighterPro demo

November 27th, 2009 2 comments
  1. C Example:
    #include 
    main()
    {
             printf ("Hello World!\n");
    }
        
  2. Java Example:

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

    
       Tove
       Jani
       Reminder
       Don't forget me this weekend!
    
    

SyntaxHighlighterPro

November 26th, 2009 No comments

SyntaxHighlighterPro is a wordpress plugin which uses the SyntaxHighlighter to highlight code snippets.

Major features:

  1. Support up to 24 languages, including Java,C++,C#,Php,JavaScript,Groovy,Ruby,Python,Perl,XML,SQL etc.
  2. Support up to 5 theme styles, that are Default,Django,Eclipse,Emacs,FadeToGrey,Midnight,RDark. You can easily change the theme in plugin settings.

    Theme styles

  3. Allow you to choose what languages will support, which is great to avoid unnecessary JavaScript imports.

    Language support

  4. Support BBCode input.
    Please enable BBCode option in SyntaxHighlighterPro Setting page before using BBCode input.

Download:Syntax Highlighter Pro

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”.

Autolinks

August 15th, 2009 2 comments

Autolinks is a very smart wordpress plugin, it automatically generate a hyper links for images of the post summary.
For category list,search result etc, if topic summary have images, autolinks will generate hyper links for these images, these hyper links will link to the topic’s full text.
Additionally, Autolinks can also automatically generate title and alt information for images when they are lack of them.
Thus, Autolinks can improve both human friendly and search engine friendly.

Download Autolinks