Tag Archives: html

创建自动高亮的导航菜单

采用css/html/js技术实现,这样就在模板中直接应用动态菜单了。 具体实现方法参考: Automatically highlight current page in menu via Javascript 我对函数进行了修改,因为我们的模块只看http://xxx/module/其中的module部分: function extractPageName(hrefString) { var arr = hrefString.split(‘/’); return (arr.length

Posted in Computer | Tagged , , , | Leave a comment

code markup插件的使用

wordpress里默认是无法显示html部分内容的内容,需要使用第三方插件才可以显示,我这使用的是code markup插件。 若需要严格的HTML内容显示,应该这样使用: <code allow=”none”> 具体的使用方法如下: * <code> or <code allow=”default”> allows common HTML tags to be rendered, and displays everything else exactly as written. * <code allow=”none”> displays content exactly as written — no markup allowed. * <code allow=”all”> … Continue reading

Posted in Linux | Tagged , , , | 1 Comment

A very nice plugin to preserve html format

Thank you, I had searched this tool a long time and now find it. It is very nice. http://www.coffee2code.com/archives/2005/03/29/plugin-preserve-code-formatting/

Posted in Blog | Tagged , , | 1 Comment