📄 14)<ol>.applescript
字号:
(* written by nakamuxu. 2005.03.14 *)--property beginStr : "<ol><li>"property endStr : "</li><li></li></ol>"property preMargin : 0----tell application "CotEditor" if exists front document then set {loc, len} to range of selection of front document if (len = 0) then set newStr to beginStr & endStr if (preMargin = 0) then set numOfMove to count of character of beginStr else set numOfMove to preMargin end if else if (len > 0) then set curStr to contents of selection of front document set newStr to beginStr & curStr & endStr if (preMargin = 0) then set numOfMove to count of character of newStr else set numOfMove to preMargin end if else return end if set contents of selection of front document to newStr set range of selection of front document to {loc + numOfMove, 0} end ifend tell
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -