Scite 快速入門 Xhtml |
|
這一點都不好笑吧?
function quickstartxhtml() editor:AddText([[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title></title> </head> <body> </body> </html>]]) end
command.name.14.*=Snippet command.14.*=Snippet command.subsystem.14.*=3 command.mode.14.*=savebefore:no command.shortcut.14.*=Ctrl+. function snippet() editor:WordLeftEndExtend() local sel = editor:GetSelText() editor:ReplaceSel('') dostring(sel .. '()') end
因此,若要使用上面的範例,你可以輸入「quickstartxhtml」(或可能更短的指令),然後按 Ctrl+.(句點),在該特定函數中的文字就會顯示出來。
Russell Beattie