Scite配置
(所有配置需要在重启之后生效)
现在很多人需要用cocos2d-x + lua吧,但是
要在vs上写lua的话太多余痛苦,所以老大发了一个编辑器给我。SciTE。跟lua for windows一起安装上的,于是就有了这样一篇配置文档
快速配置:
1. 装好这个版本的SciTE,然后用附件里我设置好的locale.properties放到\Lua\5.1\SciTE目录下就能用中文版
2. 附件luaCocos2d.api和 lua.properties覆盖\Lua\5.1\SciTE目录下的东西就可以用cocos2d-x的api
3. 本地的SciTEUser.properties在“我的文档”里面,你自己的快捷键在这里设置,可以打开附件SciTEUser.properties参考我的可以看到如何设置,我只设置了书签和缩进提示的快捷键,需要可以直接覆盖
4. 另外在菜单栏也会有提示一些常用的快捷键
后面有需要参考的文档,需要继续学习SciTE更多功能的兄弟可以深究 ^ ^
配置好的文件,只需要覆盖就可以直接用:
http://download.csdn.net/detail/u010314872/5712399
键盘快捷键说明:
Keyboard commands
Keyboard commands in SciTE mostly follow common Windows and GTK+ conventions. All movement keys (arrows, page up/down, home and end) allow to extend or reduce a stream selection when holding the Shift key, and a rectangular selection when holding the Shift and Alt keys. Some keys may not be available with some national keyboards or because they are taken by the system such as by a window manager on GTK+. The user.shortcuts setting may be used to assign a key to a function. Note that Home key behaviour is changed by the vc.home.key option. Keyboard equivalents of menu commands are listed in the menus. Some less common commands with no menu equivalent are:
| Magnify text size. | Ctrl+Keypad+ |
| Reduce text size. | Ctrl+Keypad- |
| Restore text size to normal. | Ctrl+Keypad/ |
| Cycle through recent files. | Ctrl+Tab |
| Indent block. 缩进主要靠这2个,他没有vs那样的整体缩进 | Tab |
| Dedent block. | Shift+Tab |
| Delete to start of word. | Ctrl+BackSpace |
| Delete to end of word. | Ctrl+Delete |
| Delete to start of line. | Ctrl+Shift+BackSpace |
| Delete to end of line. | Ctrl+Shift+Delete |
| Go to start of document. | Ctrl+Home |
| Extend selection to start of document. | Ctrl+Shift+Home |
| Go to start of display line. | Alt+Home |
| Go to end of document. | Ctrl+End |
| Extend selection to end of document. | Ctrl+Shift+End |
| Go to end of display line. | Alt+End |
| Expand or contract a fold point. | Ctrl+Keypad* |
| Select to next bookmark. | Alt+F2 |
| Select to previous bookmark. | Alt+Shift+F2 |
| Find selection. | Ctrl+F3 |
| Find selection backwards. | Ctrl+Shift+F3 |
| Scroll up. | Ctrl+Up |
| Scroll down. | Ctrl+Down |
| Line cut. | Ctrl+L |
| Line copy. | Ctrl+Shift+T |
| Line delete. | Ctrl+Shift+L |
| Line transpose with previous. | Ctrl+T |
| Selection duplicate. | Ctrl+D |
| Find matching preprocessor conditional, skipping nested ones. | Ctrl+K |
| Select to matching preprocessor conditional. | Ctrl+Shift+K |
| Find matching preprocessor conditional backwards, skipping nested ones. | Ctrl+J |
| Select to matching preprocessor conditional backwards. | Ctrl+Shift+J |
| Previous paragraph. Shift extends selection. | Ctrl+[ |
| Next paragraph. Shift extends selection. | Ctrl+] |
| Previous word. Shift extends selection. | Ctrl+Left |
| Next word. Shift extends selection. | Ctrl+Right |
| Previous word part. Shift extends selection | Ctrl+/ |
| Next word part. Shift extends selection. | Ctrl+\ |
| Rectangular block selection. | Alt+Shift+Movement |
| Extend rectangular selection to start of line. | Alt+Shift+Home |
| Extend rectangular selection to end of line. | Alt+Shift+End |
可用于设置快捷键,例如,打开options|open SciTeUser.properties
直接打上
user.shortcuts=\
Ctrl+W|2327|\
Alt+W|2620|\
Alt+S|2621|
就相当于将命令2327跟快捷键相关联了,以此类推
命令目录:
SciTE menu commands
| Command | Menu text |
| IDM_NEW | New |
| IDM_OPEN | Open |
| IDM_OPENSELECTED | Open Selected Filename |
| IDM_REVERT | Revert |
| IDM_CLOSE | Close |
| IDM_SAVE | Save |
| IDM_SAVEAS | Save As |
| IDM_SAVEACOPY | Save a Copy |
| IDM_COPYPATH | Copy Path |
| IDM_ENCODING_DEFAULT | Code Page Property |
| IDM_ENCODING_UCS2BE | UTF-16 Big Endian |
| IDM_ENCODING_UCS2LE | UTF-16 Little Endian |
| IDM_ENCODING_UTF8 | UTF-8 with BOM |
| IDM_ENCODING_UCOOKIE | UTF-8 |
| IDM_SAVEASHTML | As HTML |
| IDM_SAVEASRTF | As RTF |
| IDM_SAVEASPDF | As PDF |
| IDM_SAVEASTEX | As LaTeX |
| IDM_SAVEASXML | As XML |
| IDM_PRINTSETUP | Page Setup |
| IDM_PRINT | |
| IDM_LOADSESSION | Load Session |
| IDM_SAVESESSION | Save Session |
| IDM_QUIT | Exit |
| IDM_UNDO | Undo |
| IDM_REDO | Redo |
| IDM_CUT | Cut |
| IDM_COPY | Copy |
| IDM_PASTE | Paste |
| IDM_DUPLICATE | Duplicate |
| IDM_CLEAR | Delete |
| IDM_SELECTALL | Select All |
| IDM_COPYASRTF | Copy as RTF |
| IDM_MATCHBRACE | Match Brace |
| IDM_SELECTTOBRACE | Select to Brace |
| IDM_SHOWCALLTIP | Show Calltip |
| IDM_COMPLETE | Complete Symbol |
| IDM_COMPLETEWORD | Complete Word |
| IDM_ABBREV | Expand Abbreviation |
| IDM_INS_ABBREV | Insert Abbreviation |
| IDM_BLOCK_COMMENT | Block Comment or Uncomment |
| IDM_BOX_COMMENT | Box Comment |
| IDM_STREAM_COMMENT | Stream Comment |
| IDM_UPRCASE | Make Selection Uppercase |
| IDM_LWRCASE | Make Selection Lowercase |
| IDM_JOIN | Join |
| IDM_SPLIT | Split |
| IDM_FIND | Find |
| IDM_FINDNEXT | Find Next |
| IDM_FINDNEXTBACK | Find Previous |
| IDM_FINDINFILES | Find in Files |
| IDM_REPLACE | Replace |
| IDM_INCSEARCH | Incremental Search |
| IDM_GOTO | Go to |
| IDM_BOOKMARK_NEXT | Next Bookmark |
| IDM_BOOKMARK_PREV | Previous Bookmark |
| IDM_BOOKMARK_TOGGLE | Toggle Bookmark |
| IDM_BOOKMARK_CLEARALL | Clear All Bookmarks |
| IDM_EXPAND | Toggle current fold |
| IDM_TOGGLE_FOLDALL | Toggle all folds |
| IDM_FULLSCREEN | Full Screen |
| IDM_VIEWTOOLBAR | Tool Bar |
| IDM_VIEWTABBAR | Tab Bar |
| IDM_VIEWSTATUSBAR | Status Bar |
| IDM_VIEWSPACE | Whitespace |
| IDM_VIEWEOL | End of Line |
| IDM_VIEWGUIDES | Indentation Guides |
| IDM_LINENUMBERMARGIN | Line Numbers |
| IDM_SELMARGIN | Margin |
| IDM_FOLDMARGIN | Fold Margin |
| IDM_TOGGLEOUTPUT | Output |
| IDM_TOGGLEPARAMETERS | Parameters |
| IDM_COMPILE | Compile |
| IDM_BUILD | Build |
| IDM_GO | Go |
| IDM_STOPEXECUTE | Stop Executing |
| IDM_NEXTMSG | Next Message |
| IDM_PREVMSG | Previous Message |
| IDM_CLEAROUTPUT | Clear Output |
| IDM_SWITCHPANE | Switch Pane |
| IDM_ONTOP | Always On Top |
| IDM_OPENFILESHERE | Open Files Here |
| IDM_SPLITVERTICAL | Vertical Split |
| IDM_WRAP | Wrap |
| IDM_WRAPOUTPUT | Wrap Output |
| IDM_READONLY | Read-Only |
| IDM_EOL_CRLF | CR + LF |
| IDM_EOL_CR | CR |
| IDM_EOL_LF | LF |
| IDM_EOL_CONVERT | Convert Line End Characters |
| IDM_TABSIZE | Change Indentation Settings |
| IDM_MONOFONT | Use Monospaced Font |
| IDM_OPENLOCALPROPERTIES | Open Local Options File |
| IDM_OPENDIRECTORYPROPERTIES | Open Directory Options File |
| IDM_OPENUSERPROPERTIES | Open User Options File |
| IDM_OPENGLOBALPROPERTIES | Open Global Options File |
| IDM_OPENABBREVPROPERTIES | Open Abbreviations File |
| IDM_OPENLUAEXTERNALFILE | Open Lua Startup Script |
| IDM_PREVFILE | Previous |
| IDM_NEXTFILE | Next |
| IDM_CLOSEALL | Close All |
| IDM_SAVEALL | Save All |
| IDM_HELP | Help |
| IDM_HELP_SCITE | Sc1 Help |
| IDM_ABOUT | About Sc1 |
| IDM_HELP_SCITE | SciTE Help |
| IDM_ABOUT | About SciTE |
Scintilla key commands
| Command | Name | Explanation |
| 2547 | AnnotationClearAll | Clear the annotations from all lines |
| 2101 | AutoCCancel | Remove the auto-completion list from the screen. |
| 2104 | AutoCComplete | User has selected an item so remove the list and insert the selection. |
| 2328 | BackTab | Dedent the selected lines. |
| 2078 | BeginUndoAction | Start a sequence of actions that is undone and redone as a unit. May be nested. |
| 2201 | CallTipCancel | Remove the call tip from the screen. |
| 2325 | Cancel | Cancel any modes such as call tip or auto-completion list display. |
| 2304 | CharLeft | Move caret left one character. |
| 2305 | CharLeftExtend | Move caret left one character extending selection to new caret position. |
| 2428 | CharLeftRectExtend | Move caret left one character, extending rectangular selection to new caret position. |
| 2306 | CharRight | Move caret right one character. |
| 2307 | CharRightExtend | Move caret right one character extending selection to new caret position. |
| 2429 | CharRightRectExtend | Move caret right one character, extending rectangular selection to new caret position. |
| 2399 | ChooseCaretX | Set the last x chosen value to be the caret x position. |
| 2180 | Clear | Clear the selection. |
| 2004 | ClearAll | Delete all text in the document. |
| 2072 | ClearAllCmdKeys | Drop all key mappings. |
| 2005 | ClearDocumentStyle | Set all style bytes to 0, remove all folding information. |
| 2408 | ClearRegisteredImages | Clear all the registered XPM images. |
| 2571 | ClearSelections | Clear selections to a single empty stream selection |
| 2178 | Copy | Copy the selection to the clipboard. |
| 2519 | CopyAllowLine | Copy the selection, if selection empty copy the line with the caret |
| 2177 | Cut | Cut the selection to the clipboard. |
| 2395 | DelLineLeft | Delete back from the current position to the start of the line. |
| 2396 | DelLineRight | Delete forwards from the current position to the end of the line. |
| 2335 | DelWordLeft | Delete the word to the left of the caret. |
| 2336 | DelWordRight | Delete the word to the right of the caret. |
| 2518 | DelWordRightEnd | Delete the word to the right of the caret, but not the trailing non-word characters. |
| 2326 | DeleteBack | Delete the selection or if no selection, the character before the caret. |
| 2344 | DeleteBackNotLine | Delete the selection or if no selection, the character before the caret. Will not delete the character before at the start of a line. |
| 2318 | DocumentEnd | Move caret to last position in document. |
| 2319 | DocumentEndExtend | Move caret to last position in document extending selection to new caret position. |
| 2316 | DocumentStart | Move caret to first position in document. |
| 2317 | DocumentStartExtend | Move caret to first position in document extending selection to new caret position. |
| 2324 | EditToggleOvertype | Switch from insert to overtype mode or the reverse. |
| 2175 | EmptyUndoBuffer | Delete the undo history. |
| 2079 | EndUndoAction | End a sequence of actions that is undone and redone as a unit. |
| 2642 | FindIndicatorHide | On OS X, hide the find indicator. |
| 2330 | FormFeed | Insert a Form Feed character. |
| 4023 | FreeSubStyles | Free allocated sub styles |
| 2400 | GrabFocus | Set the focus to this Scintilla widget. |
| 2312 | Home | Move caret to first position on line. |
| 2345 | HomeDisplay | Move caret to first position on display line. |
| 2346 | HomeDisplayExtend | Move caret to first position on display line extending selection to new caret position. |
| 2313 | HomeExtend | Move caret to first position on line extending selection to new caret position. |
| 2430 | HomeRectExtend | Move caret to first position on line, extending rectangular selection to new caret position. |
| 2349 | HomeWrap | These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? except they behave differently when word-wrap is enabled: They go first to the start / end of the display line, like (Home|LineEnd)Display The difference is that, the cursor is already at the point, it goes on to the start or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. |
| 2450 | HomeWrapExtend | These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? except they behave differently when word-wrap is enabled: They go first to the start / end of the display line, like (Home|LineEnd)Display The difference is that, the cursor is already at the point, it goes on to the start or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. |
| 2455 | LineCopy | Copy the line containing the caret. |
| 2337 | LineCut | Cut the line containing the caret. |
| 2338 | LineDelete | Delete the line containing the caret. |
| 2300 | LineDown | Move caret down one line. |
| 2301 | LineDownExtend | Move caret down one line extending selection to new caret position. |
| 2426 | LineDownRectExtend | Move caret down one line, extending rectangular selection to new caret position. |
| 2404 | LineDuplicate | Duplicate the current line. |
| 2314 | LineEnd | Move caret to last position on line. |
| 2347 | LineEndDisplay | Move caret to last position on display line. |
| 2348 | LineEndDisplayExtend | Move caret to last position on display line extending selection to new caret position. |
| 2315 | LineEndExtend | Move caret to last position on line extending selection to new caret position. |
| 2432 | LineEndRectExtend | Move caret to last position on line, extending rectangular selection to new caret position. |
| 2451 | LineEndWrap | These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? except they behave differently when word-wrap is enabled: They go first to the start / end of the display line, like (Home|LineEnd)Display The difference is that, the cursor is already at the point, it goes on to the start or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. |
| 2452 | LineEndWrapExtend | These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? except they behave differently when word-wrap is enabled: They go first to the start / end of the display line, like (Home|LineEnd)Display The difference is that, the cursor is already at the point, it goes on to the start or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. |
| 2342 | LineScrollDown | Scroll the document down, keeping the caret visible. |
| 2343 | LineScrollUp | Scroll the document up, keeping the caret visible. |
| 2339 | LineTranspose | Switch the current line with the previous. |
| 2302 | LineUp | Move caret up one line. |
| 2303 | LineUpExtend | Move caret up one line extending selection to new caret position. |
| 2427 | LineUpRectExtend | Move caret up one line, extending rectangular selection to new caret position. |
| 2288 | LinesJoin | Join the lines in the target. |
| 2340 | LowerCase | Transform the selection to lower case. |
| 2536 | MarginTextClearAll | Clear the margin text on all lines |
| 2401 | MoveCaretInsideView | Move the caret inside current view if it's not there already. |
| 2621 | MoveSelectedLinesDown | Move the selected lines down one line, shifting the line below before the selection |
| 2620 | MoveSelectedLinesUp | Move the selected lines up one line, shifting the line above after the selection |
| 2329 | NewLine | Insert a new line, may use a CRLF, CR or LF depending on EOL mode. |
| 2172 | Null | Null operation. |
| 2322 | PageDown | Move caret one page down. |
| 2323 | PageDownExtend | Move caret one page down extending selection to new caret position. |
| 2434 | PageDownRectExtend | Move caret one page down, extending rectangular selection to new caret position. |
| 2320 | PageUp | Move caret one page up. |
| 2321 | PageUpExtend | Move caret one page up extending selection to new caret position. |
| 2433 | PageUpRectExtend | Move caret one page up, extending rectangular selection to new caret position. |
| 2413 | ParaDown | Move caret between paragraphs (delimited by empty lines). |
| 2414 | ParaDownExtend | Move caret between paragraphs (delimited by empty lines). |
| 2415 | ParaUp | Move caret between paragraphs (delimited by empty lines). |
| 2416 | ParaUpExtend | Move caret between paragraphs (delimited by empty lines). |
| 2179 | Paste | Paste the contents of the clipboard into the document replacing the selection. |
| 2011 | Redo | Redoes the next action on the undo history. |
| 2552 | ReleaseAllExtendedStyles | Release all extended (>255) style numbers |
| 2606 | RotateSelection | Set the main selection to the next selection. |
| 2169 | ScrollCaret | Ensure the caret is visible. |
| 2629 | ScrollToEnd | Scroll to end of document. |
| 2628 | ScrollToStart | Scroll to start of document. |
| 2366 | SearchAnchor | Sets the current caret position to be the search anchor. |
| 2013 | SelectAll | Select all the text in the document. |
| 2469 | SelectionDuplicate | Duplicate the selection. If selection empty duplicate the line containing the caret. |
| 2444 | SetCharsDefault | Reset the set of characters for whitespace and word characters to the defaults. |
| 2014 | SetSavePoint | Remember the current position in the undo history as the position at which the document was saved. |
| 3001 | StartRecord | Start notifying the container of all key presses and commands. |
| 3002 | StopRecord | Stop notifying the container of all key presses and commands. |
| 2437 | StutteredPageDown | Move caret to bottom of page, or one page down if already at bottom of page. |
| 2438 | StutteredPageDownExtend | Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. |
| 2435 | StutteredPageUp | Move caret to top of page, or one page up if already at top of page. |
| 2436 | StutteredPageUpExtend | Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. |
| 2050 | StyleClearAll | Clear all the styles and make equivalent to the global default style. |
| 2058 | StyleResetDefault | Reset the default style to its state at startup |
| 2607 | SwapMainAnchorCaret | Swap that caret and anchor of the main selection. |
| 2327 | Tab | If selection is empty or all on one line replace the selection with a tab character. If more than one line selected, indent the lines. |
| 2287 | TargetFromSelection | Make the target range start and end be the same as the selection range start and end. |
| 2459 | ToggleCaretSticky | Switch between sticky and non-sticky: meant to be bound to a key. |
| 2176 | Undo | Undo one action in the undo history. |
| 2341 | UpperCase | Transform the selection to upper case. |
| 2331 | VCHome | Move caret to before first visible character on line. If already there move to first character on line. |
| 2652 | VCHomeDisplay | Move caret to before first visible character on display line. If already there move to first character on display line. |
| 2653 | VCHomeDisplayExtend | Like VCHomeDisplay but extending selection to new caret position. |
| 2332 | VCHomeExtend | Like VCHome but extending selection to new caret position. |
| 2431 | VCHomeRectExtend | Move caret to before first visible character on line. If already there move to first character on line. In either case, extend rectangular selection to new caret position. |
| 2453 | VCHomeWrap | These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? except they behave differently when word-wrap is enabled: They go first to the start / end of the display line, like (Home|LineEnd)Display The difference is that, the cursor is already at the point, it goes on to the start or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. |
| 2454 | VCHomeWrapExtend | These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? except they behave differently when word-wrap is enabled: They go first to the start / end of the display line, like (Home|LineEnd)Display The difference is that, the cursor is already at the point, it goes on to the start or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. |
| 2619 | VerticalCentreCaret | Centre current line in window. |
| 2308 | WordLeft | Move caret left one word. |
| 2439 | WordLeftEnd | Move caret left one word, position cursor at end of word. |
| 2440 | WordLeftEndExtend | Move caret left one word, position cursor at end of word, extending selection to new caret position. |
| 2309 | WordLeftExtend | Move caret left one word extending selection to new caret position. |
| 2390 | WordPartLeft | Move to the previous change in capitalisation. |
| 2391 | WordPartLeftExtend | Move to the previous change in capitalisation extending selection to new caret position. |
| 2392 | WordPartRight | Move to the change next in capitalisation. |
| 2393 | WordPartRightExtend | Move to the next change in capitalisation extending selection to new caret position. |
| 2310 | WordRight | Move caret right one word. |
| 2441 | WordRightEnd | Move caret right one word, position cursor at end of word. |
| 2442 | WordRightEndExtend | Move caret right one word, position cursor at end of word, extending selection to new caret position. |
| 2311 | WordRightExtend | Move caret right one word extending selection to new caret position. |
| 2333 | ZoomIn | Magnify the displayed text by increasing the sizes by 1 point. |
| 2334 | ZoomOut | Make the displayed text smaller by decreasing the sizes by 1 point. |
SciTE还可以使用中文显示
贴上以下代码到locale.properties,重启SciTE
SciTE界面成为汉化版的方法,将下面内容复制到文本文件中,保存,重命名为:locale.properties,然后把它放到安装目录中的SciTE目录下。
#开始
translation.encoding=GBK
# 在 GBK环境下, SciTEGlobal.properties 要作下列改
# 让倒退键运作正常
# code.page=936
# Menus
# File menu
File=文件(&F)
New=新建(&N)
Open=打开(&O)
Open Selected Filename=打开选择的文件名(&F)
Revert=恢复到刚储存后!!(&R)
Close=关闭(&C)
Save=保存(&S)
Save As=另存(&A)
Export=导出(&E)
As HTML=为 HTML (&H)
As RTF=为 RTF (&R)
Page Setup=页面设定(&U)
Print=打印(&P)
Load Session=载入文件列表(&L)
Save Session=保存当前打开文件为文件列表(&V)
Exit=退出(&X)
# Edit menu
Edit=编辑(&E)
Undo=撤销(&U)
Redo=重复上次动作(&R)
Cut=剪切(&T)
Copy=拷贝(&C)
Paste=粘贴(&P)
Delete=删除(&D)
Select All=全选(&A)
Copy as RTF=复制为RTF(&F)
Match Brace=跳至对应的括号(&B)
Select to Brace=选取所括内容(及括号)(&O)
Show Calltip=显示函数提示(&H)
Complete Symbol=补齐符号(&Y)
Complete Word=补齐文字(&W)
Expand Abbreviation=展开缩写(&E)
Block Comment or Uncomment=区块中各行首加注释号/取消(&M)
Box Comment=区块首尾且各行首加注释号(&X)
Stream Comment=区块首尾加注释号(&N)
Make Selection Uppercase=大写转换(&S)
Make Selection Lowercase=小写转换(&L)
# Search menu
Search=查找(&S)
Find=搜索(&F)
Find Next=查找下一个(&N)
Find Previous=查找上一个(&S)
Find in Files=在打开文件中寻找(&I)
Replace=替换(&E)
Go to=跳至(&G)
Next Bookmark=下一个书签(&M)
Previous Bookmark=上一个书签(&V)
Toggle Bookmark=设置/清除书签(&K)
Clear All Bookmarks=清除所有书签(&C)
# View menu
View=查看(&V)
Toggle current fold=折叠/开启本区段(&C)
Toggle all folds=折叠/开启所有区段(&A)
Full Screen=全屏(&N)
Tool Bar=工具条(&T)
Tab Bar=标签栏(&B)
Status Bar=状态栏(&S)
Whitespace=空白符(&W)
End of Line=换行符(&E)
Indentation Guides=缩排(&I)
Line Numbers=行号(&L)
Margin=行号及书签(&M)
Fold Margin=折叠状态列(&F)
Output=输出窗口(&O)
Parameters=参数(&P)
# Tools menu
Tools=工具(&T)
Compile=编译(&C)
Build=建立(&B)
Go=执行(&G)
Stop Executing=停止执行(&S)
Next Message=下一个消息(&N)
Previous Message=上一个消息(&P)
Clear Output=清除输出(&O)
Switch Pane=切换视窗(&S)
# Options menu
Options=选项(&O)
Always On Top=总是在顶层(&A)
Vertical Split=两窗垂直并列(&S)
Line End Characters=规定换行号(&L)
CR + LF=CR + LF(&+)
CR=CR(&C)
LF=LF(&L)
Convert Line End Characters=依规定转换现有换行号(&C)
Change Indentation Settings=改变缩排设定(&T)
Use Monospaced Font=使用等宽字型(&M)
Open Local Options File=开启 Local Options 档(&O)
Open User Options File=开启 User Options 档(&U)
Open Global Options File=开启 Global Options 档(&G)
Open Abbreviations File=开启 Abbreviations 档(&B)
# Language menu
Language=语言(&L)
# Buffers menu
Buffers=缓冲区(&B)
Previous=上一档(&P)
Next=下一档(&N)
Close all=关闭全部档案(&C)
# Help menu
Help=说明(&H)
About Sc1=关于 Sc1(&S)
About SciTE=关于 SciTE(&A)
# Dialogs
# Generic dialog
OK=确定
Cancel=取消
Yes=是
No=否
# About dialog
# About SciTE=
# This is to add something like: Swahili translation 1.41.1 by Neil Hodgson
TranslationCredit=2003/11/07 v1.56 Daniel Lin (林原志) 翻译. \
v1.57-1.66 2005/09/02 龚维正 revised. v1.66 2005/10/02 高显华简体化并修正
Contributors:=贡献者:
# Open, Save dialogs
Open File=打开
Save File=保存
Save File As=另存为
Export File As HTML=导出为 HTML
Export File As RTF=导出为 RTF
Save Current Session=储存当前打开文件为文件列表
Custom Filter=自定义文件类型
# Find in Files dialog
#Find in Files=在众档中寻找
Find what:=搜索字符(&N)
Files:=文件(&I)
#Find=
# Go To dialog
Go To=跳至(&G)
Destination Line Number:=目地行号(&D)
Current line:=当前行号
Last line:=前一次行号
# Indentation Settings dialog
Indentation Settings=缩排设定
Tab Size:=Tab 的宽度(&T)
Indent Size:=缩排宽度(&I)
Use tabs:=使用 Tab(&U)
# Replace and Find dialogs
Replace=替换(&R)
#Find=
Find what:=搜索字符(&N)
Replace with:=替换为(&P)
Match whole word only=全字符匹配(&W)
Match case=区分大小写(&C)
Regular expression=使用正则表达式(reg. exp.)(&E)
Wrap around=循环查找(&O)
Transform backslash expressions=使用反斜线(&B)
Find Next=查找下一个(&F)
Replace All=全部替换(&A)
Replace in Selection=在选取文字中替换(&S)
#Close=
Direction=查找方向
Reverse direction=反向查找
Up=往上
Down=往下
# Parameters dialog
Execute=执行
Set=设置(&S)
# Other UI strings
Untitled=未命名
# Properties used in global options
Text=普通文本
All Source=源代码
All Files (*.*)=所有文件 (*.*)
# Messages
# Messages may contain variables such as file names or search strings indicated
# by ^0 which are replaced by values before display. ^1, ^2, ... may be used in the future.
Can not find the string '^0'.=找不到 '^0'。
Find string must not be empty for 'Replace All' command.='全部替换'时查找内容不能空白。
Selection must not be empty for 'Replace in Selection' command.='在选取文字中替换'时一定要先选取文字
No replacements because string '^0' was not present.=没有找到替换字符 '^0'。
Could not open file '^0'.=无法打开 '^0'。
Could not save file '^0'.=无法保存 '^0'。
Save changes to '^0'?=文件已发生更改,是否要保存为 '^0'?
Save changes to (Untitled)?=文件已发生更改,文件保存为 '未命名'?
The file '^0' has been modified. Should it be reloaded?=文件 '^0'已修改过,是否重新载入?
Bad file.=损坏文件。
Failed to create dialog box: ^0.=无法开启 ^0 对话框。
Can not start printer document.=无法打印。
URI '^0' not understood.=不能解析 '^0' URI。
Invalid directory '^0'.=无效的目录/文件夹 '^0'。
# 1.42
Directory:=目录(&D)
Wrap=自动换行(&W)
Hide=隐藏(&H)
Check if already open=检查文件是否已打开(&H)
# 1.43
Find string must not be empty for 'Replace in Selection' command.='在选取文字中替换'时查找内容不能空。
List Macros=列出所有宏
Run Current Macro=执行目前的宏
Record Macro=录制巨集
Stop Recording Macro=停止录制巨集
SciTE Help=SciTE 说明(&S)
Sc1 Help=Sc1 说明
Edit Properties=编辑选项
Wrap Output=输出时自动换行(&P)
# 1.44
Read-Only=只读(&R)
READ=读取
# 1.46
As TeX=为 TeX
Export File As TeX=导出为 Tex
Save a Copy=保存备份(&P)
# 1.47
As LaTeX=为 LaTeX (&L)
Export File As LaTeX=导出为 TeX
Encoding=编码
8 Bit=8位
UCS-2 Big Endian=
UCS-2 Little Endian=
UTF-8=
# 1.49
Save All=全部保存(&S)
Browse=浏览(&B)
Select a folder to search from=选择要查找的目录/文件夹
UTF-8 Cookie=
# 1.50
Insert Abbreviation=插入缩写(&I)
Abbreviation:=缩写:
Insert=插入
Mark All=找齐后全部选择(&M)
# 1.51
In Selection=在选定区域
Paragraph=段落(&G)
Join=合并(&J)
Split=分割(&S)
# 1.52
Block comment variable '^0' is not defined in SciTE *.properties!=于区块中行首的注释符号 '^0' 没有在 SciTE *.properties 中定义!
Box comment variables '^0', '^1' and '^2' are not defined in SciTE *.properties!=于区块首尾和其中各行首的注释符号 '^0' 、 '^1' 、 '^2' 没有在 SciTE *.properties 中定义!
Stream comment variables '^0' and '^1' are not defined in SciTE *.properties!=于区块首尾的注释符号 '^0' 及 '^1' 没有在 SciTE *.properties 中定义!
The file '^0' has been modified outside SciTE. Should it be reloaded?=文件 '^0' 已经在 SciTE 之外修改过, 是否要重新载入?
As PDF=为 PDF (&P)
Export File As PDF=导出为 PDF
# 1.53
Version=版本
by=由
#1.54
Incremental Search=同步输入查找(&L)
Search for:=同步输入查找
#1.55
Could not save file '^0'. Save under a different name?=无法保存 '^0' 文件,是否更名另存?
#1.56
As XML=为 XML (&X)
Export File As XML=导出为 XML
#1.57
Destination Line:=目的行(&D)
Column:=目的栏(&C)
#1.58
Replacements:=替换:
Open Files Here=在此打开文件(&H)
#1.59
#1.60
#1.61
File '^0' is ^1 bytes long,\nlarger than the ^2 bytes limit set in the properties.\nDo you still want to open it?=文件 '^0' 的长度为 ^1 bytes,\n比设定在 properties 档中的\n ^2 bytes 还长,你仍然要打开\n吗?
Open Lua Startup Script=开启 Lua Startup Script
All Files (*)=所有文件(*)
Hidden Files (.*)=隐藏文件(.*)
#1.62
Show hidden files=显示隐藏文件
#1.63
Replace in Buffers=在缓冲区中替换(&U)
Find string must not be empty for 'Replace in Buffers' command.='在缓冲区中替换'时查找内容不能为空。
Search only in this style:=仅以此样式查找:
#结束
至于API的设置:
蓝色字体仅供参考。大老的提示:
scite是luabinary默认提供的editor,目前已经有代码提示能力,但是不够,表现在:
1. scite以$(sciteHome)\lua_annot.api形式提供了静态的Code Insight,但是不能动态的对正在编辑的lua文件内的函数进行提示,而这个能力对IDE来说是非常基础的。
2. 对于在lua_annot.api内已经有的模块函数,当按了"." ,现在并不能马上提示函数清单。
改进方法如下:
1. 设置autocompletecharactor=.$(lua.char),即可解决第二个问题
2. 设置api.lua = my_annot.api
3. 在scite的lua扩展代码中(lua代码)增加代码,从而在OnSave触发的时候,生成当前文件的annot,并合并api目录内的所有api文件到my_annot.api内
4. 修改scite的c++源代码,让它在保存的时候,可以reload my_annot.api
测试用例:
1. 用scite生成一个空白文件,保存为foo.lua
2. 输入string.,期望出现string的所有函数
3. 继续输入format(,应该出现函数提示
4. 进入输入a,b),应该关闭函数提示
5. 继续输入function foo
----------------------------------------------
;
SendEditor(SCI_SETSAVEPOINT);
// lcj add
SString fileNameForExtension = ExtensionFileName ();
ReadAPI(fileNameForExtension);
// lcj comment
//if (IsPropertiesFile(filePath)) {
// ReloadProperties();
//}
------------------------------------------
test(p1,p2) end
6. 进入输入foo,不应提示footest函数
7. 按保存
8. 删除foo,然后重新输入foo,应该提示foo函数
9. <end>
做了这些事情后,在客户(lua开发者)的电脑上就可以动态的生成当前文件的api,从而一旦save就可以对当前文件进行codeinsight。
reference :
1. Google I am feeling lucky : SciTE Lua Scripting Extension
2. Google I am feeling lucky : Scite Ext Man
3. Google I am feeling lucky : Using Lua With Scite
4. 修改scite. scitebase.cxx
bool SciTEBase::Save() {
if (!filePath.IsUntitled()) {
if (props.GetInt("save.deletes.first")) {
filePath.Remove();
}
if (SaveBuffer(filePath)) {
CurrentBuffer()->SetTimeFromFile()
这些没看的很懂,试了试也没啥反应^^
于是后来在csdn上找到一个文档明白了
只需要将lua.properties的api路径设置为下载下来的api文档的路径,最好放到SciTe文件夹里面跟其他api文件properties文件一起
其实就是这样:
改为:
开启api的code insight其实也是这里的一句
Autocomplete.lua.start.characters=:.
而不是老大告诉我的autocompletecharactor=.$(lua.char)
至少这个版本的luaforwindows不是吧
然后就可以使用cocos2d-x的api了
如果有需要的话就自己改api文档就可以了,例如引擎版本更新要该接口什么的
另外某些单例会提示不了,毕竟没办法将函数返回来的单例作为该单例类继续调接口
例如:
没有办法提示ccdirector的其它函数,解决办法自己diy把
Api文档是luaCocos2dx.api,自己加的函数自己加上去就ok了
本文档详细介绍了如何配置SciTE编辑器以支持cocos2d-x + lua的开发环境。通过替换locale.properties和luaCocos2d.api文件,设置快捷键,以及调整相关选项,可以实现中文显示、cocos2d-x API代码提示等功能。此外,还提供了键盘快捷键说明和SciTE的常用操作。对于lua开发者,这将极大地提高开发效率。


被折叠的 条评论
为什么被折叠?



