⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 00)<p>.^@p.applescript

📁 Mac OS X 平台一文本编辑器的源代码
💻 APPLESCRIPT
字号:
(* written by nakamuxu. 2005.03.14 *)--property beginStr : "<p>"property endStr : "</p>"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 + -