內容簡介
本外掛在 post.php 和 post-new.php 的文章內容框中新增一個進階程式碼編輯器。新增了 Visual 和 HTML 模式的第三個選項卡,可在三者之間輕易切換。
註:Visual 模式通常會耗盡大部分或所有特殊格式。如果您想要使用 ACE 編輯器,我建議您完全禁用 Visual 模式,您可以在「使用者 -> 您的個人檔案 -> 寫文章時停用視覺編輯器」輕鬆完成。您也可以為所有使用者和特定文章類型禁用 Visual 模式。有關示例,請參閱附帶的 no-visual.php 檔案。
不是所有功能都適用於 Internet Explorer v8 及更早版本。
此功能在全螢幕模式下不適用。但很快就會支援全螢幕模式。
功能特色
語法突顯
分頁
行號
自動關閉標籤和引號
行突顯
預設主題為 TextMate
固定寬度、軟換行、可調整高度
記錄上次使用的模式,並在初始頁面視圖中載入它
ACE Editor 還可以做更多事情。如果您有整合想法,請讓我知道。
待辦事項
切換模式時保持編輯器的高度一致
處理 auto_p?(可能有助於從 Visual 模式中保留格式)
使其在全螢幕模式下運作
允許使用者在其個人檔案頁面上設定其 ACE 偏好設置
外掛標籤
開發者團隊
原文外掛簡介
This plugin adds an advanced code editor to the post content box on post.php and post-new.php. A third tab is added alongside Visual and HTML modes and you can toggle between the three.
NOTE: Visual Mode tends to eat up most/all of any special formatting. If you want to use ACE I’d suggest disabling Visual mode completely. You can do this easily yourself under Users -> Your Profile -> ‘Disable the visual editor when writing’. You can also do it for all users and for specific post types only. See the accompanying file no-visual.php for an example.
Not all features work in Internet Explorer v8 and earlier.
This does not work in full screen mode. Yet.
Features
Syntax highlighting
Tabbing
Line numbers
Auto closing of tags and quotes
Line highlighting
Default theme is TextMate
Fixed-width, soft wrap, adjustable height
Remembers your last used mode and loads it up on initial page view
ACE Editor can do quite a bit more. If you have integration ideas, let me hear about it
Todo
make height of editor consistent when toggling between modes
deal with auto_p? (might help preserve formatting from Visual mode)
make it work in full screen mode
allow users to set their ACE preferences on their profile screen
