Support Syntax Highlight now
Now, wwbBlog supports syntax highlight.
Let's see some example:
Java Code
public class HelloWorld{
public static void main(String[] args){
System.out.println("Hello World!");
}
}
C++
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
Python
print 'Hello World! :-)'
I use syntaxhighlighter, 100% Java Script based. However, there are some bugs in syntaxhighlighter. U can see from above, in c++, i can not add "include" because it doesn't convert '<' with '<', i think this issue will be fixed in the next version of syntaxhighlighter.
Another thing is, TinyMCE will use clean up functionality to remove the 'name' attribute from <pre>tag of syntaxhighlighter which is not allowed in HTML, this causes syntaxhighlighter doesn't work. So when we initial the TinyMCE, make cleanup option false in order to use syntaxhighlighter, like this:
tinyMCE.init({
...
cleanup : false
});
This like will help you know more about cleanup option.
wwbBlog Released 1.0
Today, my Team ( myself
) has released wwbBlog 1.0. ( Those are initial letters of my name written in Pinyin )
- Use TinyMCE as default RichTextEditor
- Changle severl functions in order to speed up the process of making theme from WordPress Theme
- Have some bugs fixed
- Some other things
TODO
- Make Admin UI
- Feeds
- Google Friend Connect
P.S. Lots of information of this blog lost as I made mistake when I developed.
However, I will continue writing here.
