plugin測試

import os
for root, dirs, files in os.walk('.'):
    for file in files:
        if file.endswith('.ui'):
            os.system('pyuic4 -o ui_%s.py %s' % (file.rsplit('.', 1)[0], file))
        elif file.endswith('.qrc'):
         os.system('pyrcc4 -o %s_rc.py %s' % (file.rsplit('.', 1)[0], file))
以上用SyntaxHighlighter for Windows Live Writer 
以下用 Code Snippet


   1: import ctypes, base64, pickle, sqlite3, os 
   2:  
   3: is_windows = True
   4: try:
   5:   # try to get Windows path first
   6:   SHGetFolderPath = ctypes.windll.shell32.SHGetFolderPathW
   7: except AttributeError:
   8:   is_windows = False
   9:   
  10: if is_windows:
  11:   from ctypes.wintypes import HWND, HANDLE, DWORD, LPCWSTR, MAX_PATH
  12:   SHGetFolderPath.argtypes = [HWND, ctypes.c_int, HANDLE, DWORD, LPCWSTR]
  13:   path_buffer = ctypes.wintypes.create_unicode_buffer(MAX_PATH)
  14:   # 26 is CSIDL_APPDATA, the code for retrieving the user's Application Data folder
  15:   SHGetFolderPath(0, 26, 0, 0, path_buffer)
  16:   dropbox_db_path = path_buffer.value + '\Dropbox\config.sqlite'
  17: else:
  18:   dropbox_db_path = os.path.expanduser('~/.dropbox/dropbox.db')
  19:  
  20: db = sqlite3.connect(dropbox_db_path)
  21: cur = db.cursor()
  22: cur.execute('select key, value from config order by key')
  23: for row in cur:
  24:         print row[0], '=', pickle.loads(base64.b64decode(row[1])) if row[1] != None else row[1]
  25: db.close()

測試結果完整呈現於此

Brush name Brush aliases File name
ActionScript3 as3, actionscript3 shBrushAS3.js
Bash/shell bash, shell shBrushBash.js
ColdFusion cf, coldfusion shBrushColdFusion.js
C# c-sharp, csharp shBrushCSharp.js
C++ cpp, c shBrushCpp.js
CSS css shBrushCss.js
Delphi delphi, pas, pascal shBrushDelphi.js
Diff diff, patch shBrushDiff.js
Erlang erl, erlang shBrushErlang.js
Groovy groovy shBrushGroovy.js
JavaScript js, jscript, javascript shBrushJScript.js
Java java shBrushJava.js
JavaFX jfx, javafx shBrushJavaFX.js
Perl perl, pl shBrushPerl.js
PHP php shBrushPhp.js
Plain Text plain, text shBrushPlain.js
PowerShell ps, powershell shBrushPowerShell.js
Python py, python shBrushPython.js
Ruby rails, ror, ruby shBrushRuby.js
Scala scala shBrushScala.js
SQL sql shBrushSql.js
Visual Basic vb, vbnet shBrushVb.js
XML xml, xhtml, xslt, html, xhtml shBrushXml.js
以上表格來自 http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/

1 則留言:

onaedovaccariello 提到...

Harrah's Cherokee Casino & Hotel - Mapyro
Harrah's 진주 출장마사지 Cherokee 춘천 출장샵 Casino & Hotel - 평택 출장안마 Driving directions to Harrah's Cherokee 통영 출장샵 Casino & Hotel, 777 Casino Drive, Cherokee, based on live traffic updates and road 거제 출장마사지 conditions – from

張貼留言