EControl Syntax Editor SDK
Editor commands

Navigation, no select

Id 
Const 
Short name 
Shortcut 
Description 
smLeft 
Left 
Left 
Move cursor left one char 
smRight 
Right 
Right 
Move cursor right one char 
smUp 
Up 
Up 
Move cursor up one line 
smDown 
Down 
Down 
Move cursor down one line 
smWordLeft 
Word Left 
Ctrl+Left 
Move cursor left one word 
smWordRight 
Word Right 
Ctrl+Right 
Move cursor right one word 
smLineStart 
Begin of Line 
 
Move cursor to beginning of line 
smLineEnd 
End of Line 
 
Move cursor to end of line 
smPageUp 
Page Up 
PgUp 
Move cursor up one page 
10 
smPageDown 
Page Down 
PgDn 
Move cursor down one page 
11 
smPageLeft 
Page Left 
 
Move cursor left one page 
12 
smPageRight 
Page Right 
 
Move cursor right one page 
13 
smPageTop 
Top of Page 
Ctrl+PgUp 
Move cursor to top of page 
14 
smPageBottom 
Bottom of Page 
Ctrl+PgDn 
Move cursor to bottom of page 
15 
smEditorTop 
Begin of Text 
Ctrl+Home 
Move cursor to absolute beginning 
16 
smEditorBottom 
End of Text 
Ctrl+End 
Move cursor to absolute end 
17 
smGotoXY 
 
 
Move cursor to specific coordinates 
18 
smFirstLetter 
First Char 
Home 
Move cursor to first char of line 
19 
smLastLetter 
Last Chat 
End 
Move cursor to last char of line 
20 
smLeftUp 
Left-Up 
 
Move cursor left and up at line start 

 

Navigation, normal select

Id 
Const 
Short name 
Shortcut 
Description 
101 
smSelLeft 
 
Shift + Left 
Move cursor and select left one char 
102 
smSelRight 
 
Shift + Right 
Move cursor and select right one char 
103 
smSelUp 
 
Shift + Up 
Move cursor and select up one line 
104 
smSelDown 
 
Shift + Down 
Move cursor and select down one line 
105 
smSelWordLeft 
 
Shift + Ctrl + Left 
Move cursor and select left one word 
106 
smSelWordRight 
 
Shift + Ctrl + Right 
Move cursor and select right one word 
107 
smSelLineStart 
 
 
Move cursor and select to beginning of line 
108 
smSelLineEnd 
 
 
Move cursor and select to end of line 
109 
smSelPageUp 
 
Shift + PgUp 
Move cursor and select up one page 
110 
smSelPageDown 
 
Shift + PgDn 
Move cursor and select down one page 
111 
smSelPageLeft 
 
 
Move cursor and select right one page 
112 
smSelPageRight 
 
 
Move cursor and select left one page 
113 
smSelPageTop 
 
Shift + Ctrl + PgUp 
Move cursor and select to top of page 
114 
smSelPageBottom 
 
Shift + Ctrl + PgDn 
Move cursor and select to bottom of page 
115 
smSelEditorTop 
 
Shift + Ctrl + Home 
Move cursor and select to absolute beginning 
116 
smSelEditorBottom 
 
Shift + Ctrl + End 
Move cursor and select to absolute end 
117 
smSelGotoXY 
 
 
Move cursor and select to specific coordinates 
118 
smSelFirstLetter 
 
Shift + Home 
Move cursor and select to first char of line 
119 
smSelLastLetter 
 
Shift + End 
Move cursor and select to last char of line 
120 
smSelLeftUp 
 
 
Move cursor and select left and up at line start 

 

Navigation, columnar select

Id 
Const 
Short name 
Shortcut 
Description 
201 
smColSelLeft 
 
Alt + Shift + Left 
Move cursor and column select left one char 
202 
smColSelRight 
 
Alt + Shift + Right 
Move cursor and column select right one char 
203 
smColSelUp 
 
Alt + Shift + Up 
Move cursor and column select up one line 
204 
smColSelDown 
 
Alt + Shift + Down 
Move cursor and column select down one line 
205 
smColSelWordLeft 
 
Alt + Shift + Ctrl + Left 
Move cursor and column select left one word 
206 
smColSelWordRight 
 
Alt + Shift + Ctrl + Right 
Move cursor and column select right one word 
207 
smColSelLineStart 
 
 
Move cursor and column select to beginning of line 
208 
smColSelLineEnd 
 
 
Move cursor and column select to end of line 
209 
smColSelPageUp 
 
Alt + Shift + PgUp 
Move cursor and column select up one page 
210 
smColSelPageDown 
 
Alt + Shift + PgDn 
Move cursor and column select down one page 
211 
smColSelPageLeft 
 
 
Move cursor and column select right one page 
212 
smColSelPageRight 
 
 
Move cursor and column select left one page 
213 
smColSelPageTop 
 
Alt + Shift + Ctrl + PgUp 
Move cursor and column select to top of page 
214 
smColSelPageBottom 
 
Alt + Shift + Ctrl + Alt + PgDn 
Move cursor and column select to bottom of page 
215 
smColSelEditorTop 
 
Alt + Shift + Ctrl + Home 
Move cursor and column select to absolute beginning 
216 
smColSelEditorBottom 
 
Alt + Shift + Ctrl + End 
Move cursor and column select to absolute end 
217 
smColGotoXY 
 
 
Move cursor and select to specific coordinates 
218 
smColFirstLetter 
 
Alt + Shift + Home 
Move cursor and column select to first char of line 
219 
smColLastLetter 
 
Alt + Shift + End 
Move cursor and column select to last char of line 
220 
smColLeftUp 
 
 
Move cursor and column select left and up at line start 

 

Standard actions

Id 
Const 
Short name 
Shortcut 
Description 
301 
smCopy 
Copy 
Ctrl + C; Ctrl + Ins 
Copy selection to clipboard 
302 
smCut 
Cut 
Ctrl + X 
Cut selection to clipboard 
303 
smPaste 
Paste 
Ctrl + V; Shift + Ins 
Paste clipboard to current position 
304 
smUndo 
Undo 
Ctrl + Z; Alt + Backspace 
Perform undo if available 
305 
smRedo 
Redo 
Shift +Ctrl + Z 
Perform redo if available 
306 
smSelectAll 
Select All 
Ctrl + A 
Select entire contents of editor 
307 
smClearSelection 
Clear 
Ctrl + Del 
Clear current selection 
308 
smCopyAsRTF 
Copy As RTF 
 
Copy to clipboard in RTF format 

 

Scrolling

Id 
Const 
Short name 
Shortcut 
Description 
311 
smScrollUp 
Scroll Up 
Ctrl + Up 
Scroll up one line leaving cursor position unchanged 
312 
smScrollDown 
Scroll Down 
Ctrl + Down 
Scroll down one line leaving cursor position unchanged 
313 
smScrollLeft 
Scroll Left 
 
Scroll left one char leaving cursor position unchanged 
314 
smScrollRight 
Scroll Right 
 
Scroll right one char leaving cursor position unchanged 
315 
smScrollPageUp 
Scroll Page Up 
 
Scroll up one page leaving cursor position unchanged 
316 
smScrollPageDown 
Scroll Page Down 
 
Scroll down one page leaving cursor position unchanged 
317 
smScrollPageLeft 
Scroll Page Left 
 
Scroll left one screen leaving cursor position unchanged 
318 
smScrollPageRight 
Scroll Page Right 
 
Scroll right one screen leaving cursor position unchanged 
319 
smScrollAbsUp 
Scroll to begin 
 
Scroll to absolute beginning leaving cursor position unchanged 
320 
smScrollAbsDown 
Scroll to end 
 
Scroll to absolute end leaving cursor position unchanged 
321 
smScrollAbsLeft 
Scroll to left 
 
Scroll to absolute left leaving cursor position unchanged 
322 
smScrollAbsRight 
Scroll to right 
 
Scroll to absolute right leaving cursor position unchanged 

 

Deleting text

Id 
Const 
Short name 
Shortcut 
Description 
331 
smDeleteLastChar 
Back Delete Char 
Backspace 
Delete last char (i.e. backspace key) 
332 
smDeleteChar 
Delete Char 
Del 
Delete char at cursor (i.e. delete key) 
333 
smDeleteWord 
Delete Word 
Ctrl + T 
Delete from cursor to next word 
334 
smDeleteLastWord 
Back Delete Word 
Ctrl + Backspace 
Delete from cursor to start of word 
335 
smDeleteBOL 
Delete to Line Begin 
Ctrl + B 
Delete from cursor to beginning of line 
336 
smDeleteEOL 
Delete to Line End 
Ctrl + E 
Delete from cursor to end of line 
337 
smDeleteLine 
Delete Line 
Ctrl + Y 
Delete current line 
338 
smClearAll 
Clear all 
 
Delete everything 

 

Inserting text, Indents and Tabs

Id 
Const 
Short name 
Shortcut 
Description 
339 
smLineBreak 
New Line 
Enter 
Break line at current position, move caret to new line 
340 
smInsertLine 
 
Ctrl + N 
Break line at current position, leave caret 
341 
smChar 
 
 
Insert a character at current position 
342 
smString 
 
 
Insert a whole string 
350 
smBlockIndent 
Indent 
Ctrl + Tab 
Indent selection 
351 
smBlockUnindent 
Unindent 
Shift + Tab 
Unindent selection 
352 
smTab 
 
Tab 
Tab key 
353 
smTabChar 
 
Ctrl + I 
Insert Tab char 

 

Change case

Id 
Const 
Short name 
Shortcut 
Description 
360 
smUpperCase 
Word Upper Case 
 
Upper case to current or previous word 
361 
smLowerCase 
Word Lower Case 
 
Lower case to current or previous word 
362 
smToggleCase 
Word Toggle Case 
 
Toggle case to current or previous word 
363 
smTitleCase 
Word Title Case 
 
Title case to current or previous word 
365 
smUpperCaseBlock 
Selection Upper Case 
Ctrl + K + N 
Upper case to current selection or current char 
366 
smLowerCaseBlock 
Selection Lower Case 
Ctrl + K + O 
Lower case to current selection or current char 
367 
smToggleCaseBlock 
Selection Toggle Case 
 
Toggle case to current selection or current char 
368 
smTitleCaseBlock 
Selection Title Case 
 
Title case to current selection 

 

Selection modes

Id 
Const 
Short name 
Shortcut 
Description 
371 
smInsertMode 
Insert Mode 
 
Set insert mode 
372 
smOverwriteMode 
Overwrite Mode 
 
Set overwrite mode 
373 
smToggleMode 
Toggle Insert Mode 
Ins 
Toggle insert/overwrite mode 
374 
smNormalSelect 
Normal Selection 
Ctrl + O + K 
Normal selection mode 
375 
smColumnSelect 
Column Selection 
Ctrl + O + C 
Column selection mode 
376 
smLineSelect 
Line Selection 
Ctrl + O + L 
Line selection mode 
377 
smMarkSelStart 
Mark Selection Start 
Ctrl + K + B 
Marks the beginning of a block 
378 
smMarkSelEnd 
Mark Selection End 
Ctrl + K + K 
Marks the end of a block 
379 
smResetSelection 
Reset selection 
Esc 
Reset selection 

 

Go to bookmark commands

Id 
Const 
Short name 
Shortcut 
Description 
401 
smGotoBookmark0 
Goto Bookmark 0 
Ctrl + 0 
Go to Bookmark 0 
402 
smGotoBookmark1 
Goto Bookmark 1 
Ctrl + 1 
Go to Bookmark 1 
403 
smGotoBookmark2 
Goto Bookmark 2 
Ctrl + 2 
Go to Bookmark 2 
404 
smGotoBookmark3 
Goto Bookmark 3 
Ctrl + 3 
Go to Bookmark 3 
405 
smGotoBookmark4 
Goto Bookmark 4 
Ctrl + 4 
Go to Bookmark 4 
406 
smGotoBookmark5 
Goto Bookmark 5 
Ctrl + 5 
Go to Bookmark 5 
407 
smGotoBookmark6 
Goto Bookmark 6 
Ctrl + 6 
Go to Bookmark 6 
408 
smGotoBookmark7 
Goto Bookmark 7 
Ctrl + 7 
Go to Bookmark 7 
409 
smGotoBookmark8 
Goto Bookmark 8 
Ctrl + 8 
Go to Bookmark 8 
410 
smGotoBookmark9 
Goto Bookmark 9 
Ctrl + 9 
Go to Bookmark 9 

 

Toggle bookmark commands

Id 
Const 
Short name 
Shortcut 
Description 
411 
smSetBookmark0 
Toggle Bookmark 0 
Shift + Ctrl + 0 
Toggle Bookmark 0 
412 
smSetBookmark1 
Toggle Bookmark 1 
Shift + Ctrl + 1 
Toggle Bookmark 1 
413 
smSetBookmark2 
Toggle Bookmark 2 
Shift + Ctrl + 2 
Toggle Bookmark 2 
414 
smSetBookmark3 
Toggle Bookmark 3 
Shift + Ctrl + 3 
Toggle Bookmark 3 
415 
smSetBookmark4 
Toggle Bookmark 4 
Shift + Ctrl + 4 
Toggle Bookmark 4 
416 
smSetBookmark5 
Toggle Bookmark 5 
Shift + Ctrl + 5 
Toggle Bookmark 5 
417 
smSetBookmark6 
Toggle Bookmark 6 
Shift + Ctrl + 6 
Toggle Bookmark 6 
418 
smSetBookmark7 
Toggle Bookmark 7 
Shift + Ctrl + 7 
Toggle Bookmark 7 
419 
smSetBookmark8 
Toggle Bookmark 8 
Shift + Ctrl + 8 
Toggle Bookmark 8 
420 
smSetBookmark9 
Toggle Bookmark 9 
Shift + Ctrl + 9 
Toggle Bookmark 9 

 

Stack-based markers

Id 
Const 
Short name 
Shortcut 
Description 
430 
smDropMarker 
Drop marker 
Alt + Home 
Drops marker to the current position 
431 
smCollectMarker 
Collect marker 
Alt + End 
Collect marker (jump back) 
432 
smSwapMarker 
Swap marker 
Alt + Shift + Home 
Swap marker (keep position, jump back) 

 

Text folding

Id 
Const 
Short name 
Shortcut 
Description 
520 
smToggleCollapse 
Toggle Collapse 
 
Collapse/expand block at current line 
521 
smCollapse 
Collapse 
 
Collapse block at current line 
522 
smExpand 
Expand 
 
Expand block at current line 
523 
smFullCollapse 
Full Collapse 
 
Collapse all blocks in the text 
524 
smFullExpand 
Full Expand 
 
Expand all collapsed blocks in the text 
525 
smCollapseSelection 
Collapse Selection 
 
Collapse selected block 
526 
smToggleCollapseNearest 
Toggle Collapse Nearest 
Ctrl + = 
Collapse/expand nearest block 
527 
smInSelCollapse 
Collapse in selection 
 
Collapse ranges in selection 
528 
smInSelExpand 
Expand in selection 
 
Expand ranges in selection 
532 
smToggleFolding 
Toggle Folding 
 
Toggle Folding 

 

Miscellaneous

Id 
Const 
Short name 
Shortcut 
Description 
433 
smChangeRangeSide 
Jump to bracket 
Ctrl + [ 
Jump to matching bracket (change range side) 
530 
smToggleNonPrinted 
Show Non Printed 
 
Show/Hide non printed text/characters 
531 
smToggleWordWrap 
Toggle Word Wrap 
 
Toggle Word Wrap 
533 
smToggleLineNumbersVisible 
Show line numbers 
 
Show/Hide line numbers 
560 
smCommentLines 
Comment lines 
 
Comment selected lines 
561 
smUncommentLines 
Uncomment lines 
 
Uncomment selected lines 
562 
smSortAscending 
Ascending sort 
 
Ascending sort of selected lines 
563 
smSortDescending 
Descending sort 
 
Descending sort of selected lines 
564 
smGotoLine 
Go to line number 
Alt + G 
Go to line number 
565 
smAlignTokens 
Aligns tokens 
 
Aligns tokens in selected lines 

 

Macros

Id 
Const 
Short name 
Shortcut 
Description 
570 
smMacroRecStart 
 
 
 
571 
smMacroRecStop 
 
 
 
572 
smMacroRecCancel 
 
 
 
573 
smMacroPlay 
 
 
 

 

Search commands (require TSyntFindDialog to be linked to the editor)

Id 
Const 
Short name 
Shortcut 
Description 
600 
smFindDialog 
Find Dialog 
Ctrl + F 
Find Dialog 
601 
smFindNext 
Find Next 
 
Find Next 
602 
smFindPrev 
Find Previous 
 
Find Previous 
603 
smFindAll 
Find All 
 
Find All 
604 
smFindFirst 
Find First 
 
Find First 
605 
smFindLast 
Find Last 
 
Find Last 
606 
smSearchAgain 
Search Again 
F3 
Search Again 
607 
smFindCurrentWordNext 
Find Current Word Next 
Ctrl + Shift + Down 
Find Current Word Next 
608 
smFindCurrentWordPrior 
Find Current Word Prior 
Ctrl + Shift + Up 
Find Current Word Prior 
550 
smIncrementalSearch 
Incremental Search 
Ctrl + E 
Incremental search 

 

Replace commands (require TSyntReplaceDialog to be linked to the editor)

Id 
Const 
Short name 
Shortcut 
Description 
610 
smReplaceDialog 
Replace Dialog 
Ctrl + R 
Replace Dialog 
611 
smReplaceNext 
Replace Next 
 
Replace Next 
612 
smReplacePrev 
Replace Previous 
 
Replace Previous 
613 
smReplaceAll 
Replace All 
 
Replace All 
614 
smReplaceFirst 
Replace First 
 
Replace First 
615 
smReplaceLast 
Replace Last 
 
Replace Last 
616 
smReplaceAgain 
Replace Again 
 
Replace Again 

 

Block operations

Id 
Const 
Short name 
Shortcut 
Description 
620 
smCopyPasteFileEnd 
 
 
Block Copy & Paste end of file 
621 
smCopyPasteFileStart 
 
 
Block Copy & Paste start of file 
622 
smCutPasteFileEnd 
 
 
Block Cut & Paste end of file 
623 
smCutPasteFileStart 
 
 
Block Cut & Paste start of file 
624 
smCopyPasteAbove 
 
 
Block Copy & Paste above selected block 
625 
smCopyPasteBelow 
 
 
Block Copy & Paste below top of file 

 

Print commands (require TecSyntPrinter to be linked to the editor)

Id 
Const 
Short name 
Shortcut 
Description 
630 
smPrint 
Print all text 
 
Print all text 
631 
smPrintSelection 
Print selected text 
 
Print selected text 
632 
smPrintPreview 
Print preview 
 
Print preview 
633 
smPageSetup 
Page Setup... 
 
Page Setup dialog 

 

Search marks (only when soKeepSearchMarks option (ex) is set)

Id 
Const 
Short name 
Shortcut 
Description 
640 
smSearchMarkReset 
Reset search marks 
 
Reset search marks 
641 
smSearchMarkNext 
Go to next search mark 
 
Go to next search mark 
642 
smSearchMarkPrev 
Go to previous search mark 
 
Go to previous search mark 

 

Tools

Id 
Const 
Short name 
Shortcut 
Description 
700 
smAutoComplete 
Auto completion 
Ctrl + Space 
Auto completion popup 
701 
smCodeTemplate 
Code templates 
Ctrl + J 
Code templates popup 
702 
smParameterHint 
Code parameters 
Ctrl + Shift + Space 
Code parameters tool tip 
703 
smSelCharacter 
Select character 
Ctrl + . 
Select character popup 
704 
smAutoCorrectCur 
Auto correct current word 
 
Auto correct current word 
705 
smAutoCorrectAll 
Auto correct all words 
 
Auto correct all words 
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!