Hi! I’m clsung

Hi! I’m clsung

clsung’s blog site, or you can call me AlanSung

Hi! I’m clsung RSS Feed
 
 
 
 

[WP-Plugins] Acronym-Plugin

就是頭字語囉 ,Arconym-Plugin
簡單地解釋,就是在檔案中自訂了頭字語,之後在發表文章的時候,它會根據你的設定,自動幫你加上頭字語解釋哦。格式摘要如下:

$acronym_acronym = array(
“AOL” => “America Online”,
“API” => “Application Programming Interface”,
“BTW” => “By The Way”,

不過記得要把第 131 行的 regular expresion

“|(?!<[^<>]*?)(?<![?./&])b$acronymb(?!:)(?![^<>]*?>)|msU”

換成

“|(?!<[^<>]*?)(?<![?./&])b$acronymb(?!:)(?![^<>]*?>)|imsU”

不然會把小寫的字母也換成頭字語。

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • funp
  • Haohao
  • Hemidemi
  • Live
  • MisterWong
  • TwitThis
  • udn

Leave a Reply

噗浪:

  • clsung 說 下雨... 5 hours 前
  • clsung 說 News98 這個時段的廣播變了 8 hours 前
  • clsung 說 會早來的人又少了 2009/01/05

分類

Flickr

    clsung. Get yours at bighugelabs.com/flickr

Blogroll

    馬的警總回來了
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan