TQt conversion of scintilla for Qt3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Scintilla.iface 89KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012
  1. ## First line may be used for shbang
  2. ## This file defines the interface to Scintilla
  3. ## Copyright 2000-2003 by Neil Hodgson <neilh@scintilla.org>
  4. ## The License.txt file describes the conditions under which this software may be distributed.
  5. ## A line starting with ## is a pure comment and should be stripped by readers.
  6. ## A line starting with #! is for future shbang use
  7. ## A line starting with # followed by a space is a documentation comment and refers
  8. ## to the next feature definition.
  9. ## Each feature is defined by a line starting with fun, get, set, val or evt.
  10. ## cat -> start a category
  11. ## fun -> a function
  12. ## get -> a property get function
  13. ## set -> a property set function
  14. ## val -> definition of a constant
  15. ## evt -> an event
  16. ## enu -> associate an enumeration with a set of vals with a prefix
  17. ## lex -> associate a lexer with the lexical classes it produces
  18. ##
  19. ## All other feature names should be ignored. They may be defined in the future.
  20. ## A property may have a set function, a get function or both. Each will have
  21. ## "Get" or "Set" in their names and the corresponding name will have the obvious switch.
  22. ## A property may be subscripted, in which case the first parameter is the subscript.
  23. ## fun, get, and set features have a strict syntax:
  24. ## <featureType><ws><returnType><ws><name>[=<number](<param>,<param>)
  25. ## where <ws> stands for white space.
  26. ## param may be empty (null value) or is <paramType><ws><paramName>[=<value>]
  27. ## Additional white space is allowed between elements.
  28. ## The syntax for evt is <featureType><ws><returnType><ws><name>[=<number]([<param>[,<param>]*])
  29. ## Feature names that contain an underscore are defined by Windows, so in these
  30. ## cases, using the Windows definition is preferred where available.
  31. ## The feature numbers are stable so features will not be renumbered.
  32. ## Features may be removed but they will go through a period of deprecation
  33. ## before removal which is signalled by moving them into the Deprecated category.
  34. ##
  35. ## enu has the syntax enu<ws><enumeration>=<prefix>[<ws><prefix>]* where all the val
  36. ## features in this file starting with a given <prefix> are considered part of the
  37. ## enumeration.
  38. ##
  39. ## lex has the syntax lex<ws><name>=<lexerVal><ws><prefix>[<ws><prefix>]*
  40. ## where name is a reasonably capitalised (Python, XML) identifier or UI name,
  41. ## lexerVal is the val used to specify the lexer, and the list of prefixes is similar
  42. ## to enu. The name may not be the same as that used within the lexer so the lexerVal
  43. ## should be used to tie these entities together.
  44. ## Types:
  45. ## void
  46. ## int
  47. ## bool -> integer, 1=true, 0=false
  48. ## position -> integer position in a document
  49. ## colour -> colour integer containing red, green and blue bytes.
  50. ## string -> pointer to const character
  51. ## stringresult -> pointer to character, NULL-> return size of result
  52. ## cells -> pointer to array of cells, each cell containing a style byte and character byte
  53. ## textrange -> range of a min and a max position with an output string
  54. ## findtext -> searchrange, text -> foundposition
  55. ## keymod -> integer containing key in low half and modifiers in high half
  56. ## formatrange
  57. ## Types no longer used:
  58. ## findtextex -> searchrange
  59. ## charrange -> range of a min and a max position
  60. ## charrangeresult -> like charrange, but output param
  61. ## countedstring
  62. ## point -> x,y
  63. ## pointresult -> like point, but output param
  64. ## rectangle -> left,top,right,bottom
  65. ## Client code should ignore definitions containing types it does not understand, except
  66. ## for possibly #defining the constants
  67. ## Line numbers and positions start at 0.
  68. ## String arguments may contain NUL ('\0') characters where the calls provide a length
  69. ## argument and retrieve NUL characters. All retrieved strings except for those retrieved
  70. ## by GetLine also have a NUL appended but client code should calculate the size that
  71. ## will be returned rather than relying upon the NUL whenever possible. Allow for the
  72. ## extra NUL character when allocating buffers. The size to allocate for a stringresult
  73. ## can be determined by calling with a NULL (0) pointer.
  74. cat Basics
  75. ################################################
  76. ## For Scintilla.h
  77. val INVALID_POSITION=-1
  78. # Define start of Scintilla messages to be greater than all Windows edit (EM_*) messages
  79. # as many EM_ messages can be used although that use is deprecated.
  80. val SCI_START=2000
  81. val SCI_OPTIONAL_START=3000
  82. val SCI_LEXER_START=4000
  83. # Add text to the document at current position.
  84. fun void AddText=2001(int length, string text)
  85. # Add array of cells to document.
  86. fun void AddStyledText=2002(int length, cells c)
  87. # Insert string at a position.
  88. fun void InsertText=2003(position pos, string text)
  89. # Delete all text in the document.
  90. fun void ClearAll=2004(,)
  91. # Set all style bytes to 0, remove all folding information.
  92. fun void ClearDocumentStyle=2005(,)
  93. # Returns the number of characters in the document.
  94. get int GetLength=2006(,)
  95. # Returns the character byte at the position.
  96. get int GetCharAt=2007(position pos,)
  97. # Returns the position of the caret.
  98. get position GetCurrentPos=2008(,)
  99. # Returns the position of the opposite end of the selection to the caret.
  100. get position GetAnchor=2009(,)
  101. # Returns the style byte at the position.
  102. get int GetStyleAt=2010(position pos,)
  103. # Redoes the next action on the undo history.
  104. fun void Redo=2011(,)
  105. # Choose between collecting actions into the undo
  106. # history and discarding them.
  107. set void SetUndoCollection=2012(bool collectUndo,)
  108. # Select all the text in the document.
  109. fun void SelectAll=2013(,)
  110. # Remember the current position in the undo history as the position
  111. # at which the document was saved.
  112. fun void SetSavePoint=2014(,)
  113. # Retrieve a buffer of cells.
  114. # Returns the number of bytes in the buffer not including terminating NULs.
  115. fun int GetStyledText=2015(, textrange tr)
  116. # Are there any redoable actions in the undo history?
  117. fun bool CanRedo=2016(,)
  118. # Retrieve the line number at which a particular marker is located.
  119. fun int MarkerLineFromHandle=2017(int handle,)
  120. # Delete a marker.
  121. fun void MarkerDeleteHandle=2018(int handle,)
  122. # Is undo history being collected?
  123. get bool GetUndoCollection=2019(,)
  124. enu WhiteSpace=SCWS_
  125. val SCWS_INVISIBLE=0
  126. val SCWS_VISIBLEALWAYS=1
  127. val SCWS_VISIBLEAFTERINDENT=2
  128. # Are white space characters currently visible?
  129. # Returns one of SCWS_* constants.
  130. get int GetViewWS=2020(,)
  131. # Make white space characters invisible, always visible or visible outside indentation.
  132. set void SetViewWS=2021(int viewWS,)
  133. # Find the position from a point within the window.
  134. fun position PositionFromPoint=2022(int x, int y)
  135. # Find the position from a point within the window but return
  136. # INVALID_POSITION if not close to text.
  137. fun position PositionFromPointClose=2023(int x, int y)
  138. # Set caret to start of a line and ensure it is visible.
  139. fun void GotoLine=2024(int line,)
  140. # Set caret to a position and ensure it is visible.
  141. fun void GotoPos=2025(position pos,)
  142. # Set the selection anchor to a position. The anchor is the opposite
  143. # end of the selection from the caret.
  144. set void SetAnchor=2026(position posAnchor,)
  145. # Retrieve the text of the line containing the caret.
  146. # Returns the index of the caret on the line.
  147. fun int GetCurLine=2027(int length, stringresult text)
  148. # Retrieve the position of the last correctly styled character.
  149. get position GetEndStyled=2028(,)
  150. enu EndOfLine=SC_EOL_
  151. val SC_EOL_CRLF=0
  152. val SC_EOL_CR=1
  153. val SC_EOL_LF=2
  154. # Convert all line endings in the document to one mode.
  155. fun void ConvertEOLs=2029(int eolMode,)
  156. # Retrieve the current end of line mode - one of CRLF, CR, or LF.
  157. get int GetEOLMode=2030(,)
  158. # Set the current end of line mode.
  159. set void SetEOLMode=2031(int eolMode,)
  160. # Set the current styling position to pos and the styling mask to mask.
  161. # The styling mask can be used to protect some bits in each styling byte from modification.
  162. fun void StartStyling=2032(position pos, int mask)
  163. # Change style from current styling position for length characters to a style
  164. # and move the current styling position to after this newly styled segment.
  165. fun void SetStyling=2033(int length, int style)
  166. # Is drawing done first into a buffer or direct to the screen?
  167. get bool GetBufferedDraw=2034(,)
  168. # If drawing is buffered then each line of text is drawn into a bitmap buffer
  169. # before drawing it to the screen to avoid flicker.
  170. set void SetBufferedDraw=2035(bool buffered,)
  171. # Change the visible size of a tab to be a multiple of the width of a space character.
  172. set void SetTabWidth=2036(int tabWidth,)
  173. # Retrieve the visible size of a tab.
  174. get int GetTabWidth=2121(,)
  175. # The SC_CP_UTF8 value can be used to enter Unicode mode.
  176. # This is the same value as CP_UTF8 in Windows
  177. val SC_CP_UTF8=65001
  178. # The SC_CP_DBCS value can be used to indicate a DBCS mode for GTK+.
  179. val SC_CP_DBCS=1
  180. # Set the code page used to interpret the bytes of the document as characters.
  181. # The SC_CP_UTF8 value can be used to enter Unicode mode.
  182. set void SetCodePage=2037(int codePage,)
  183. # In palette mode, Scintilla uses the environment's palette calls to display
  184. # more colours. This may lead to ugly displays.
  185. set void SetUsePalette=2039(bool usePalette,)
  186. enu MarkerSymbol=SC_MARK_
  187. val MARKER_MAX=31
  188. val SC_MARK_CIRCLE=0
  189. val SC_MARK_ROUNDRECT=1
  190. val SC_MARK_ARROW=2
  191. val SC_MARK_SMALLRECT=3
  192. val SC_MARK_SHORTARROW=4
  193. val SC_MARK_EMPTY=5
  194. val SC_MARK_ARROWDOWN=6
  195. val SC_MARK_MINUS=7
  196. val SC_MARK_PLUS=8
  197. # Shapes used for outlining column.
  198. val SC_MARK_VLINE=9
  199. val SC_MARK_LCORNER=10
  200. val SC_MARK_TCORNER=11
  201. val SC_MARK_BOXPLUS=12
  202. val SC_MARK_BOXPLUSCONNECTED=13
  203. val SC_MARK_BOXMINUS=14
  204. val SC_MARK_BOXMINUSCONNECTED=15
  205. val SC_MARK_LCORNERCURVE=16
  206. val SC_MARK_TCORNERCURVE=17
  207. val SC_MARK_CIRCLEPLUS=18
  208. val SC_MARK_CIRCLEPLUSCONNECTED=19
  209. val SC_MARK_CIRCLEMINUS=20
  210. val SC_MARK_CIRCLEMINUSCONNECTED=21
  211. # Invisible mark that only sets the line background color.
  212. val SC_MARK_BACKGROUND=22
  213. val SC_MARK_DOTDOTDOT=23
  214. val SC_MARK_ARROWS=24
  215. val SC_MARK_PIXMAP=25
  216. val SC_MARK_FULLRECT=26
  217. val SC_MARK_CHARACTER=10000
  218. enu MarkerOutline=SC_MARKNUM_
  219. # Markers used for outlining column.
  220. val SC_MARKNUM_FOLDEREND=25
  221. val SC_MARKNUM_FOLDEROPENMID=26
  222. val SC_MARKNUM_FOLDERMIDTAIL=27
  223. val SC_MARKNUM_FOLDERTAIL=28
  224. val SC_MARKNUM_FOLDERSUB=29
  225. val SC_MARKNUM_FOLDER=30
  226. val SC_MARKNUM_FOLDEROPEN=31
  227. val SC_MASK_FOLDERS=0xFE000000
  228. # Set the symbol used for a particular marker number.
  229. fun void MarkerDefine=2040(int markerNumber, int markerSymbol)
  230. # Set the foreground colour used for a particular marker number.
  231. fun void MarkerSetFore=2041(int markerNumber, colour fore)
  232. # Set the background colour used for a particular marker number.
  233. fun void MarkerSetBack=2042(int markerNumber, colour back)
  234. # Add a marker to a line, returning an ID which can be used to find or delete the marker.
  235. fun int MarkerAdd=2043(int line, int markerNumber)
  236. # Delete a marker from a line.
  237. fun void MarkerDelete=2044(int line, int markerNumber)
  238. # Delete all markers with a particular number from all lines.
  239. fun void MarkerDeleteAll=2045(int markerNumber,)
  240. # Get a bit mask of all the markers set on a line.
  241. fun int MarkerGet=2046(int line,)
  242. # Find the next line after lineStart that includes a marker in mask.
  243. fun int MarkerNext=2047(int lineStart, int markerMask)
  244. # Find the previous line before lineStart that includes a marker in mask.
  245. fun int MarkerPrevious=2048(int lineStart, int markerMask)
  246. # Define a marker from a pixmap.
  247. fun void MarkerDefinePixmap=2049(int markerNumber, string pixmap)
  248. # Add a set of markers to a line.
  249. fun void MarkerAddSet=2466(int line, int set)
  250. # Set the alpha used for a marker that is drawn in the text area, not the margin.
  251. fun void MarkerSetAlpha=2476(int markerNumber, int alpha)
  252. enu MarginType=SC_MARGIN_
  253. val SC_MARGIN_SYMBOL=0
  254. val SC_MARGIN_NUMBER=1
  255. val SC_MARGIN_BACK=2
  256. val SC_MARGIN_FORE=3
  257. # Set a margin to be either numeric or symbolic.
  258. set void SetMarginTypeN=2240(int margin, int marginType)
  259. # Retrieve the type of a margin.
  260. get int GetMarginTypeN=2241(int margin,)
  261. # Set the width of a margin to a width expressed in pixels.
  262. set void SetMarginWidthN=2242(int margin, int pixelWidth)
  263. # Retrieve the width of a margin in pixels.
  264. get int GetMarginWidthN=2243(int margin,)
  265. # Set a mask that determines which markers are displayed in a margin.
  266. set void SetMarginMaskN=2244(int margin, int mask)
  267. # Retrieve the marker mask of a margin.
  268. get int GetMarginMaskN=2245(int margin,)
  269. # Make a margin sensitive or insensitive to mouse clicks.
  270. set void SetMarginSensitiveN=2246(int margin, bool sensitive)
  271. # Retrieve the mouse click sensitivity of a margin.
  272. get bool GetMarginSensitiveN=2247(int margin,)
  273. # Styles in range 32..38 are predefined for parts of the UI and are not used as normal styles.
  274. # Style 39 is for future use.
  275. enu StylesCommon=STYLE_
  276. val STYLE_DEFAULT=32
  277. val STYLE_LINENUMBER=33
  278. val STYLE_BRACELIGHT=34
  279. val STYLE_BRACEBAD=35
  280. val STYLE_CONTROLCHAR=36
  281. val STYLE_INDENTGUIDE=37
  282. val STYLE_CALLTIP=38
  283. val STYLE_LASTPREDEFINED=39
  284. val STYLE_MAX=127
  285. # Character set identifiers are used in StyleSetCharacterSet.
  286. # The values are the same as the Windows *_CHARSET values.
  287. enu CharacterSet=SC_CHARSET_
  288. val SC_CHARSET_ANSI=0
  289. val SC_CHARSET_DEFAULT=1
  290. val SC_CHARSET_BALTIC=186
  291. val SC_CHARSET_CHINESEBIG5=136
  292. val SC_CHARSET_EASTEUROPE=238
  293. val SC_CHARSET_GB2312=134
  294. val SC_CHARSET_GREEK=161
  295. val SC_CHARSET_HANGUL=129
  296. val SC_CHARSET_MAC=77
  297. val SC_CHARSET_OEM=255
  298. val SC_CHARSET_RUSSIAN=204
  299. val SC_CHARSET_CYRILLIC=1251
  300. val SC_CHARSET_SHIFTJIS=128
  301. val SC_CHARSET_SYMBOL=2
  302. val SC_CHARSET_TURKISH=162
  303. val SC_CHARSET_JOHAB=130
  304. val SC_CHARSET_HEBREW=177
  305. val SC_CHARSET_ARABIC=178
  306. val SC_CHARSET_VIETNAMESE=163
  307. val SC_CHARSET_THAI=222
  308. val SC_CHARSET_8859_15=1000
  309. # Clear all the styles and make equivalent to the global default style.
  310. set void StyleClearAll=2050(,)
  311. # Set the foreground colour of a style.
  312. set void StyleSetFore=2051(int style, colour fore)
  313. # Set the background colour of a style.
  314. set void StyleSetBack=2052(int style, colour back)
  315. # Set a style to be bold or not.
  316. set void StyleSetBold=2053(int style, bool bold)
  317. # Set a style to be italic or not.
  318. set void StyleSetItalic=2054(int style, bool italic)
  319. # Set the size of characters of a style.
  320. set void StyleSetSize=2055(int style, int sizePoints)
  321. # Set the font of a style.
  322. set void StyleSetFont=2056(int style, string fontName)
  323. # Set a style to have its end of line filled or not.
  324. set void StyleSetEOLFilled=2057(int style, bool filled)
  325. # Reset the default style to its state at startup
  326. fun void StyleResetDefault=2058(,)
  327. # Set a style to be underlined or not.
  328. set void StyleSetUnderline=2059(int style, bool underline)
  329. enu CaseVisible=SC_CASE_
  330. val SC_CASE_MIXED=0
  331. val SC_CASE_UPPER=1
  332. val SC_CASE_LOWER=2
  333. # Set a style to be mixed case, or to force upper or lower case.
  334. set void StyleSetCase=2060(int style, int caseForce)
  335. # Set the character set of the font in a style.
  336. set void StyleSetCharacterSet=2066(int style, int characterSet)
  337. # Set a style to be a hotspot or not.
  338. set void StyleSetHotSpot=2409(int style, bool hotspot)
  339. # Set the foreground colour of the selection and whether to use this setting.
  340. fun void SetSelFore=2067(bool useSetting, colour fore)
  341. # Set the background colour of the selection and whether to use this setting.
  342. fun void SetSelBack=2068(bool useSetting, colour back)
  343. # Get the alpha of the selection.
  344. get int GetSelAlpha=2477(,)
  345. # Set the alpha of the selection.
  346. set void SetSelAlpha=2478(int alpha,)
  347. # Set the foreground colour of the caret.
  348. set void SetCaretFore=2069(colour fore,)
  349. # When key+modifier combination km is pressed perform msg.
  350. fun void AssignCmdKey=2070(keymod km, int msg)
  351. # When key+modifier combination km is pressed do nothing.
  352. fun void ClearCmdKey=2071(keymod km,)
  353. # Drop all key mappings.
  354. fun void ClearAllCmdKeys=2072(,)
  355. # Set the styles for a segment of the document.
  356. fun void SetStylingEx=2073(int length, string styles)
  357. # Set a style to be visible or not.
  358. set void StyleSetVisible=2074(int style, bool visible)
  359. # Get the time in milliseconds that the caret is on and off.
  360. get int GetCaretPeriod=2075(,)
  361. # Get the time in milliseconds that the caret is on and off. 0 = steady on.
  362. set void SetCaretPeriod=2076(int periodMilliseconds,)
  363. # Set the set of characters making up words for when moving or selecting by word.
  364. # First sets deaults like SetCharsDefault.
  365. set void SetWordChars=2077(, string characters)
  366. # Start a sequence of actions that is undone and redone as a unit.
  367. # May be nested.
  368. fun void BeginUndoAction=2078(,)
  369. # End a sequence of actions that is undone and redone as a unit.
  370. fun void EndUndoAction=2079(,)
  371. enu IndicatorStyle=INDIC_
  372. val INDIC_MAX=7
  373. val INDIC_PLAIN=0
  374. val INDIC_SQUIGGLE=1
  375. val INDIC_TT=2
  376. val INDIC_DIAGONAL=3
  377. val INDIC_STRIKE=4
  378. val INDIC_HIDDEN=5
  379. val INDIC_BOX=6
  380. val INDIC_ROUNDBOX=7
  381. val INDIC0_MASK=0x20
  382. val INDIC1_MASK=0x40
  383. val INDIC2_MASK=0x80
  384. val INDICS_MASK=0xE0
  385. # Set an indicator to plain, squiggle or TT.
  386. set void IndicSetStyle=2080(int indic, int style)
  387. # Retrieve the style of an indicator.
  388. get int IndicGetStyle=2081(int indic,)
  389. # Set the foreground colour of an indicator.
  390. set void IndicSetFore=2082(int indic, colour fore)
  391. # Retrieve the foreground colour of an indicator.
  392. get colour IndicGetFore=2083(int indic,)
  393. # Set the foreground colour of all whitespace and whether to use this setting.
  394. fun void SetWhitespaceFore=2084(bool useSetting, colour fore)
  395. # Set the background colour of all whitespace and whether to use this setting.
  396. fun void SetWhitespaceBack=2085(bool useSetting, colour back)
  397. # Divide each styling byte into lexical class bits (default: 5) and indicator
  398. # bits (default: 3). If a lexer requires more than 32 lexical states, then this
  399. # is used to expand the possible states.
  400. set void SetStyleBits=2090(int bits,)
  401. # Retrieve number of bits in style bytes used to hold the lexical state.
  402. get int GetStyleBits=2091(,)
  403. # Used to hold extra styling information for each line.
  404. set void SetLineState=2092(int line, int state)
  405. # Retrieve the extra styling information for a line.
  406. get int GetLineState=2093(int line,)
  407. # Retrieve the last line number that has line state.
  408. get int GetMaxLineState=2094(,)
  409. # Is the background of the line containing the caret in a different colour?
  410. get bool GetCaretLineVisible=2095(,)
  411. # Display the background of the line containing the caret in a different colour.
  412. set void SetCaretLineVisible=2096(bool show,)
  413. # Get the colour of the background of the line containing the caret.
  414. get colour GetCaretLineBack=2097(,)
  415. # Set the colour of the background of the line containing the caret.
  416. set void SetCaretLineBack=2098(colour back,)
  417. # Set a style to be changeable or not (read only).
  418. # Experimental feature, currently buggy.
  419. set void StyleSetChangeable=2099(int style, bool changeable)
  420. # Display a auto-completion list.
  421. # The lenEntered parameter indicates how many characters before
  422. # the caret should be used to provide context.
  423. fun void AutoCShow=2100(int lenEntered, string itemList)
  424. # Remove the auto-completion list from the screen.
  425. fun void AutoCCancel=2101(,)
  426. # Is there an auto-completion list visible?
  427. fun bool AutoCActive=2102(,)
  428. # Retrieve the position of the caret when the auto-completion list was displayed.
  429. fun position AutoCPosStart=2103(,)
  430. # User has selected an item so remove the list and insert the selection.
  431. fun void AutoCComplete=2104(,)
  432. # Define a set of character that when typed cancel the auto-completion list.
  433. fun void AutoCStops=2105(, string characterSet)
  434. # Change the separator character in the string setting up an auto-completion list.
  435. # Default is space but can be changed if items contain space.
  436. set void AutoCSetSeparator=2106(int separatorCharacter,)
  437. # Retrieve the auto-completion list separator character.
  438. get int AutoCGetSeparator=2107(,)
  439. # Select the item in the auto-completion list that starts with a string.
  440. fun void AutoCSelect=2108(, string text)
  441. # Should the auto-completion list be cancelled if the user backspaces to a
  442. # position before where the box was created.
  443. set void AutoCSetCancelAtStart=2110(bool cancel,)
  444. # Retrieve whether auto-completion cancelled by backspacing before start.
  445. get bool AutoCGetCancelAtStart=2111(,)
  446. # Define a set of characters that when typed will cause the autocompletion to
  447. # choose the selected item.
  448. set void AutoCSetFillUps=2112(, string characterSet)
  449. # Should a single item auto-completion list automatically choose the item.
  450. set void AutoCSetChooseSingle=2113(bool chooseSingle,)
  451. # Retrieve whether a single item auto-completion list automatically choose the item.
  452. get bool AutoCGetChooseSingle=2114(,)
  453. # Set whether case is significant when performing auto-completion searches.
  454. set void AutoCSetIgnoreCase=2115(bool ignoreCase,)
  455. # Retrieve state of ignore case flag.
  456. get bool AutoCGetIgnoreCase=2116(,)
  457. # Display a list of strings and send notification when user chooses one.
  458. fun void UserListShow=2117(int listType, string itemList)
  459. # Set whether or not autocompletion is hidden automatically when nothing matches.
  460. set void AutoCSetAutoHide=2118(bool autoHide,)
  461. # Retrieve whether or not autocompletion is hidden automatically when nothing matches.
  462. get bool AutoCGetAutoHide=2119(,)
  463. # Set whether or not autocompletion deletes any word characters
  464. # after the inserted text upon completion.
  465. set void AutoCSetDropRestOfWord=2270(bool dropRestOfWord,)
  466. # Retrieve whether or not autocompletion deletes any word characters
  467. # after the inserted text upon completion.
  468. get bool AutoCGetDropRestOfWord=2271(,)
  469. # Register an XPM image for use in autocompletion lists.
  470. fun void RegisterImage=2405(int type, string xpmData)
  471. # Clear all the registered XPM images.
  472. fun void ClearRegisteredImages=2408(,)
  473. # Retrieve the auto-completion list type-separator character.
  474. get int AutoCGetTypeSeparator=2285(,)
  475. # Change the type-separator character in the string setting up an auto-completion list.
  476. # Default is '?' but can be changed if items contain '?'.
  477. set void AutoCSetTypeSeparator=2286(int separatorCharacter,)
  478. # Set the maximum width, in characters, of auto-completion and user lists.
  479. # Set to 0 to autosize to fit longest item, which is the default.
  480. set void AutoCSetMaxWidth=2208(int characterCount,)
  481. # Get the maximum width, in characters, of auto-completion and user lists.
  482. get int AutoCGetMaxWidth=2209(,)
  483. # Set the maximum height, in rows, of auto-completion and user lists.
  484. # The default is 5 rows.
  485. set void AutoCSetMaxHeight=2210(int rowCount,)
  486. # Set the maximum height, in rows, of auto-completion and user lists.
  487. get int AutoCGetMaxHeight=2211(,)
  488. # Set the number of spaces used for one level of indentation.
  489. set void SetIndent=2122(int indentSize,)
  490. # Retrieve indentation size.
  491. get int GetIndent=2123(,)
  492. # Indentation will only use space characters if useTabs is false, otherwise
  493. # it will use a combination of tabs and spaces.
  494. set void SetUseTabs=2124(bool useTabs,)
  495. # Retrieve whether tabs will be used in indentation.
  496. get bool GetUseTabs=2125(,)
  497. # Change the indentation of a line to a number of columns.
  498. set void SetLineIndentation=2126(int line, int indentSize)
  499. # Retrieve the number of columns that a line is indented.
  500. get int GetLineIndentation=2127(int line,)
  501. # Retrieve the position before the first non indentation character on a line.
  502. get position GetLineIndentPosition=2128(int line,)
  503. # Retrieve the column number of a position, taking tab width into account.
  504. get int GetColumn=2129(position pos,)
  505. # Show or hide the horizontal scroll bar.
  506. set void SetHScrollBar=2130(bool show,)
  507. # Is the horizontal scroll bar visible?
  508. get bool GetHScrollBar=2131(,)
  509. # Show or hide indentation guides.
  510. set void SetIndentationGuides=2132(bool show,)
  511. # Are the indentation guides visible?
  512. get bool GetIndentationGuides=2133(,)
  513. # Set the highlighted indentation guide column.
  514. # 0 = no highlighted guide.
  515. set void SetHighlightGuide=2134(int column,)
  516. # Get the highlighted indentation guide column.
  517. get int GetHighlightGuide=2135(,)
  518. # Get the position after the last visible characters on a line.
  519. get int GetLineEndPosition=2136(int line,)
  520. # Get the code page used to interpret the bytes of the document as characters.
  521. get int GetCodePage=2137(,)
  522. # Get the foreground colour of the caret.
  523. get colour GetCaretFore=2138(,)
  524. # In palette mode?
  525. get bool GetUsePalette=2139(,)
  526. # In read-only mode?
  527. get bool GetReadOnly=2140(,)
  528. # Sets the position of the caret.
  529. set void SetCurrentPos=2141(position pos,)
  530. # Sets the position that starts the selection - this becomes the anchor.
  531. set void SetSelectionStart=2142(position pos,)
  532. # Returns the position at the start of the selection.
  533. get position GetSelectionStart=2143(,)
  534. # Sets the position that ends the selection - this becomes the currentPosition.
  535. set void SetSelectionEnd=2144(position pos,)
  536. # Returns the position at the end of the selection.
  537. get position GetSelectionEnd=2145(,)
  538. # Sets the print magnification added to the point size of each style for printing.
  539. set void SetPrintMagnification=2146(int magnification,)
  540. # Returns the print magnification.
  541. get int GetPrintMagnification=2147(,)
  542. enu PrintOption=SC_PRINT_
  543. # PrintColourMode - use same colours as screen.
  544. val SC_PRINT_NORMAL=0
  545. # PrintColourMode - invert the light value of each style for printing.
  546. val SC_PRINT_INVERTLIGHT=1
  547. # PrintColourMode - force black text on white background for printing.
  548. val SC_PRINT_BLACKONWHITE=2
  549. # PrintColourMode - text stays coloured, but all background is forced to be white for printing.
  550. val SC_PRINT_COLOURONWHITE=3
  551. # PrintColourMode - only the default-background is forced to be white for printing.
  552. val SC_PRINT_COLOURONWHITEDEFAULTBG=4
  553. # Modify colours when printing for clearer printed text.
  554. set void SetPrintColourMode=2148(int mode,)
  555. # Returns the print colour mode.
  556. get int GetPrintColourMode=2149(,)
  557. enu FindOption=SCFIND_
  558. val SCFIND_WHOLEWORD=2
  559. val SCFIND_MATCHCASE=4
  560. val SCFIND_WORDSTART=0x00100000
  561. val SCFIND_REGEXP=0x00200000
  562. val SCFIND_POSIX=0x00400000
  563. # Find some text in the document.
  564. fun position FindText=2150(int flags, findtext ft)
  565. # On Windows, will draw the document into a display context such as a printer.
  566. fun position FormatRange=2151(bool draw, formatrange fr)
  567. # Retrieve the display line at the top of the display.
  568. get int GetFirstVisibleLine=2152(,)
  569. # Retrieve the contents of a line.
  570. # Returns the length of the line.
  571. fun int GetLine=2153(int line, stringresult text)
  572. # Returns the number of lines in the document. There is always at least one.
  573. get int GetLineCount=2154(,)
  574. # Sets the size in pixels of the left margin.
  575. set void SetMarginLeft=2155(, int pixelWidth)
  576. # Returns the size in pixels of the left margin.
  577. get int GetMarginLeft=2156(,)
  578. # Sets the size in pixels of the right margin.
  579. set void SetMarginRight=2157(, int pixelWidth)
  580. # Returns the size in pixels of the right margin.
  581. get int GetMarginRight=2158(,)
  582. # Is the document different from when it was last saved?
  583. get bool GetModify=2159(,)
  584. # Select a range of text.
  585. fun void SetSel=2160(position start, position end)
  586. # Retrieve the selected text.
  587. # Return the length of the text.
  588. fun int GetSelText=2161(, stringresult text)
  589. # Retrieve a range of text.
  590. # Return the length of the text.
  591. fun int GetTextRange=2162(, textrange tr)
  592. # Draw the selection in normal style or with selection highlighted.
  593. fun void HideSelection=2163(bool normal,)
  594. # Retrieve the x value of the point in the window where a position is displayed.
  595. fun int PointXFromPosition=2164(, position pos)
  596. # Retrieve the y value of the point in the window where a position is displayed.
  597. fun int PointYFromPosition=2165(, position pos)
  598. # Retrieve the line containing a position.
  599. fun int LineFromPosition=2166(position pos,)
  600. # Retrieve the position at the start of a line.
  601. fun position PositionFromLine=2167(int line,)
  602. # Scroll horizontally and vertically.
  603. fun void LineScroll=2168(int columns, int lines)
  604. # Ensure the caret is visible.
  605. fun void ScrollCaret=2169(,)
  606. # Replace the selected text with the argument text.
  607. fun void ReplaceSel=2170(, string text)
  608. # Set to read only or read write.
  609. set void SetReadOnly=2171(bool readOnly,)
  610. # Null operation.
  611. fun void Null=2172(,)
  612. # Will a paste succeed?
  613. fun bool CanPaste=2173(,)
  614. # Are there any undoable actions in the undo history?
  615. fun bool CanUndo=2174(,)
  616. # Delete the undo history.
  617. fun void EmptyUndoBuffer=2175(,)
  618. # Undo one action in the undo history.
  619. fun void Undo=2176(,)
  620. # Cut the selection to the clipboard.
  621. fun void Cut=2177(,)
  622. # Copy the selection to the clipboard.
  623. fun void Copy=2178(,)
  624. # Paste the contents of the clipboard into the document replacing the selection.
  625. fun void Paste=2179(,)
  626. # Clear the selection.
  627. fun void Clear=2180(,)
  628. # Replace the contents of the document with the argument text.
  629. fun void SetText=2181(, string text)
  630. # Retrieve all the text in the document.
  631. # Returns number of characters retrieved.
  632. fun int GetText=2182(int length, stringresult text)
  633. # Retrieve the number of characters in the document.
  634. get int GetTextLength=2183(,)
  635. # Retrieve a pointer to a function that processes messages for this Scintilla.
  636. get int GetDirectFunction=2184(,)
  637. # Retrieve a pointer value to use as the first argument when calling
  638. # the function returned by GetDirectFunction.
  639. get int GetDirectPointer=2185(,)
  640. # Set to overtype (true) or insert mode.
  641. set void SetOvertype=2186(bool overtype,)
  642. # Returns true if overtype mode is active otherwise false is returned.
  643. get bool GetOvertype=2187(,)
  644. # Set the width of the insert mode caret.
  645. set void SetCaretWidth=2188(int pixelWidth,)
  646. # Returns the width of the insert mode caret.
  647. get int GetCaretWidth=2189(,)
  648. # Sets the position that starts the target which is used for updating the
  649. # document without affecting the scroll position.
  650. set void SetTargetStart=2190(position pos,)
  651. # Get the position that starts the target.
  652. get position GetTargetStart=2191(,)
  653. # Sets the position that ends the target which is used for updating the
  654. # document without affecting the scroll position.
  655. set void SetTargetEnd=2192(position pos,)
  656. # Get the position that ends the target.
  657. get position GetTargetEnd=2193(,)
  658. # Replace the target text with the argument text.
  659. # Text is counted so it can contain NULs.
  660. # Returns the length of the replacement text.
  661. fun int ReplaceTarget=2194(int length, string text)
  662. # Replace the target text with the argument text after \d processing.
  663. # Text is counted so it can contain NULs.
  664. # Looks for \d where d is between 1 and 9 and replaces these with the strings
  665. # matched in the last search operation which were surrounded by \( and \).
  666. # Returns the length of the replacement text including any change
  667. # caused by processing the \d patterns.
  668. fun int ReplaceTargetRE=2195(int length, string text)
  669. # Search for a counted string in the target and set the target to the found
  670. # range. Text is counted so it can contain NULs.
  671. # Returns length of range or -1 for failure in which case target is not moved.
  672. fun int SearchInTarget=2197(int length, string text)
  673. # Set the search flags used by SearchInTarget.
  674. set void SetSearchFlags=2198(int flags,)
  675. # Get the search flags used by SearchInTarget.
  676. get int GetSearchFlags=2199(,)
  677. # Show a call tip containing a definition near position pos.
  678. fun void CallTipShow=2200(position pos, string definition)
  679. # Remove the call tip from the screen.
  680. fun void CallTipCancel=2201(,)
  681. # Is there an active call tip?
  682. fun bool CallTipActive=2202(,)
  683. # Retrieve the position where the caret was before displaying the call tip.
  684. fun position CallTipPosStart=2203(,)
  685. # Highlight a segment of the definition.
  686. fun void CallTipSetHlt=2204(int start, int end)
  687. # Set the background colour for the call tip.
  688. set void CallTipSetBack=2205(colour back,)
  689. # Set the foreground colour for the call tip.
  690. set void CallTipSetFore=2206(colour fore,)
  691. # Set the foreground colour for the highlighted part of the call tip.
  692. set void CallTipSetForeHlt=2207(colour fore,)
  693. # Enable use of STYLE_CALLTIP and set call tip tab size in pixels.
  694. set void CallTipUseStyle=2212(int tabSize,)
  695. # Find the display line of a document line taking hidden lines into account.
  696. fun int VisibleFromDocLine=2220(int line,)
  697. # Find the document line of a display line taking hidden lines into account.
  698. fun int DocLineFromVisible=2221(int lineDisplay,)
  699. # The number of display lines needed to wrap a document line
  700. fun int WrapCount=2235(int line,)
  701. enu FoldLevel=SC_FOLDLEVEL
  702. val SC_FOLDLEVELBASE=0x400
  703. val SC_FOLDLEVELWHITEFLAG=0x1000
  704. val SC_FOLDLEVELHEADERFLAG=0x2000
  705. val SC_FOLDLEVELBOXHEADERFLAG=0x4000
  706. val SC_FOLDLEVELBOXFOOTERFLAG=0x8000
  707. val SC_FOLDLEVELCONTRACTED=0x10000
  708. val SC_FOLDLEVELUNINDENT=0x20000
  709. val SC_FOLDLEVELNUMBERMASK=0x0FFF
  710. # Set the fold level of a line.
  711. # This encodes an integer level along with flags indicating whether the
  712. # line is a header and whether it is effectively white space.
  713. set void SetFoldLevel=2222(int line, int level)
  714. # Retrieve the fold level of a line.
  715. get int GetFoldLevel=2223(int line,)
  716. # Find the last child line of a header line.
  717. get int GetLastChild=2224(int line, int level)
  718. # Find the parent line of a child line.
  719. get int GetFoldParent=2225(int line,)
  720. # Make a range of lines visible.
  721. fun void ShowLines=2226(int lineStart, int lineEnd)
  722. # Make a range of lines invisible.
  723. fun void HideLines=2227(int lineStart, int lineEnd)
  724. # Is a line visible?
  725. get bool GetLineVisible=2228(int line,)
  726. # Show the children of a header line.
  727. set void SetFoldExpanded=2229(int line, bool expanded)
  728. # Is a header line expanded?
  729. get bool GetFoldExpanded=2230(int line,)
  730. # Switch a header line between expanded and contracted.
  731. fun void ToggleFold=2231(int line,)
  732. # Ensure a particular line is visible by expanding any header line hiding it.
  733. fun void EnsureVisible=2232(int line,)
  734. enu FoldFlag=SC_FOLDFLAG_
  735. val SC_FOLDFLAG_LINEBEFORE_EXPANDED=0x0002
  736. val SC_FOLDFLAG_LINEBEFORE_CONTRACTED=0x0004
  737. val SC_FOLDFLAG_LINEAFTER_EXPANDED=0x0008
  738. val SC_FOLDFLAG_LINEAFTER_CONTRACTED=0x0010
  739. val SC_FOLDFLAG_LEVELNUMBERS=0x0040
  740. val SC_FOLDFLAG_BOX=0x0001
  741. # Set some style options for folding.
  742. fun void SetFoldFlags=2233(int flags,)
  743. # Ensure a particular line is visible by expanding any header line hiding it.
  744. # Use the currently set visibility policy to determine which range to display.
  745. fun void EnsureVisibleEnforcePolicy=2234(int line,)
  746. # Sets whether a tab pressed when caret is within indentation indents.
  747. set void SetTabIndents=2260(bool tabIndents,)
  748. # Does a tab pressed when caret is within indentation indent?
  749. get bool GetTabIndents=2261(,)
  750. # Sets whether a backspace pressed when caret is within indentation unindents.
  751. set void SetBackSpaceUnIndents=2262(bool bsUnIndents,)
  752. # Does a backspace pressed when caret is within indentation unindent?
  753. get bool GetBackSpaceUnIndents=2263(,)
  754. val SC_TIME_FOREVER=10000000
  755. # Sets the time the mouse must sit still to generate a mouse dwell event.
  756. set void SetMouseDwellTime=2264(int periodMilliseconds,)
  757. # Retrieve the time the mouse must sit still to generate a mouse dwell event.
  758. get int GetMouseDwellTime=2265(,)
  759. # Get position of start of word.
  760. fun int WordStartPosition=2266(position pos, bool onlyWordCharacters)
  761. # Get position of end of word.
  762. fun int WordEndPosition=2267(position pos, bool onlyWordCharacters)
  763. enu Wrap=SC_WRAP_
  764. val SC_WRAP_NONE=0
  765. val SC_WRAP_WORD=1
  766. val SC_WRAP_CHAR=2
  767. # Sets whether text is word wrapped.
  768. set void SetWrapMode=2268(int mode,)
  769. # Retrieve whether text is word wrapped.
  770. get int GetWrapMode=2269(,)
  771. enu WrapVisualFlag=SC_WRAPVISUALFLAG_
  772. val SC_WRAPVISUALFLAG_NONE=0x0000
  773. val SC_WRAPVISUALFLAG_END=0x0001
  774. val SC_WRAPVISUALFLAG_START=0x0002
  775. # Set the display mode of visual flags for wrapped lines.
  776. set void SetWrapVisualFlags=2460(int wrapVisualFlags,)
  777. # Retrive the display mode of visual flags for wrapped lines.
  778. get int GetWrapVisualFlags=2461(,)
  779. enu WrapVisualLocation=SC_WRAPVISUALFLAGLOC_
  780. val SC_WRAPVISUALFLAGLOC_DEFAULT=0x0000
  781. val SC_WRAPVISUALFLAGLOC_END_BY_TEXT=0x0001
  782. val SC_WRAPVISUALFLAGLOC_START_BY_TEXT=0x0002
  783. # Set the location of visual flags for wrapped lines.
  784. set void SetWrapVisualFlagsLocation=2462(int wrapVisualFlagsLocation,)
  785. # Retrive the location of visual flags for wrapped lines.
  786. get int GetWrapVisualFlagsLocation=2463(,)
  787. # Set the start indent for wrapped lines.
  788. set void SetWrapStartIndent=2464(int indent,)
  789. # Retrive the start indent for wrapped lines.
  790. get int GetWrapStartIndent=2465(,)
  791. enu LineCache=SC_CACHE_
  792. val SC_CACHE_NONE=0
  793. val SC_CACHE_CARET=1
  794. val SC_CACHE_PAGE=2
  795. val SC_CACHE_DOCUMENT=3
  796. # Sets the degree of caching of layout information.
  797. set void SetLayoutCache=2272(int mode,)
  798. # Retrieve the degree of caching of layout information.
  799. get int GetLayoutCache=2273(,)
  800. # Sets the document width assumed for scrolling.
  801. set void SetScrollWidth=2274(int pixelWidth,)
  802. # Retrieve the document width assumed for scrolling.
  803. get int GetScrollWidth=2275(,)
  804. # Measure the pixel width of some text in a particular style.
  805. # NUL terminated text argument.
  806. # Does not handle tab or control characters.
  807. fun int TextWidth=2276(int style, string text)
  808. # Sets the scroll range so that maximum scroll position has
  809. # the last line at the bottom of the view (default).
  810. # Setting this to false allows scrolling one page below the last line.
  811. set void SetEndAtLastLine=2277(bool endAtLastLine,)
  812. # Retrieve whether the maximum scroll position has the last
  813. # line at the bottom of the view.
  814. get bool GetEndAtLastLine=2278(,)
  815. # Retrieve the height of a particular line of text in pixels.
  816. fun int TextHeight=2279(int line,)
  817. # Show or hide the vertical scroll bar.
  818. set void SetVScrollBar=2280(bool show,)
  819. # Is the vertical scroll bar visible?
  820. get bool GetVScrollBar=2281(,)
  821. # Append a string to the end of the document without changing the selection.
  822. fun void AppendText=2282(int length, string text)
  823. # Is drawing done in two phases with backgrounds drawn before faoregrounds?
  824. get bool GetTwoPhaseDraw=2283(,)
  825. # In twoPhaseDraw mode, drawing is performed in two phases, first the background
  826. # and then the foreground. This avoids chopping off characters that overlap the next run.
  827. set void SetTwoPhaseDraw=2284(bool twoPhase,)
  828. # Make the target range start and end be the same as the selection range start and end.
  829. fun void TargetFromSelection=2287(,)
  830. # Join the lines in the target.
  831. fun void LinesJoin=2288(,)
  832. # Split the lines in the target into lines that are less wide than pixelWidth
  833. # where possible.
  834. fun void LinesSplit=2289(int pixelWidth,)
  835. # Set the colours used as a chequerboard pattern in the fold margin
  836. fun void SetFoldMarginColour=2290(bool useSetting, colour back)
  837. fun void SetFoldMarginHiColour=2291(bool useSetting, colour fore)
  838. ## New messages go here
  839. ## Start of key messages
  840. # Move caret down one line.
  841. fun void LineDown=2300(,)
  842. # Move caret down one line extending selection to new caret position.
  843. fun void LineDownExtend=2301(,)
  844. # Move caret up one line.
  845. fun void LineUp=2302(,)
  846. # Move caret up one line extending selection to new caret position.
  847. fun void LineUpExtend=2303(,)
  848. # Move caret left one character.
  849. fun void CharLeft=2304(,)
  850. # Move caret left one character extending selection to new caret position.
  851. fun void CharLeftExtend=2305(,)
  852. # Move caret right one character.
  853. fun void CharRight=2306(,)
  854. # Move caret right one character extending selection to new caret position.
  855. fun void CharRightExtend=2307(,)
  856. # Move caret left one word.
  857. fun void WordLeft=2308(,)
  858. # Move caret left one word extending selection to new caret position.
  859. fun void WordLeftExtend=2309(,)
  860. # Move caret right one word.
  861. fun void WordRight=2310(,)
  862. # Move caret right one word extending selection to new caret position.
  863. fun void WordRightExtend=2311(,)
  864. # Move caret to first position on line.
  865. fun void Home=2312(,)
  866. # Move caret to first position on line extending selection to new caret position.
  867. fun void HomeExtend=2313(,)
  868. # Move caret to last position on line.
  869. fun void LineEnd=2314(,)
  870. # Move caret to last position on line extending selection to new caret position.
  871. fun void LineEndExtend=2315(,)
  872. # Move caret to first position in document.
  873. fun void DocumentStart=2316(,)
  874. # Move caret to first position in document extending selection to new caret position.
  875. fun void DocumentStartExtend=2317(,)
  876. # Move caret to last position in document.
  877. fun void DocumentEnd=2318(,)
  878. # Move caret to last position in document extending selection to new caret position.
  879. fun void DocumentEndExtend=2319(,)
  880. # Move caret one page up.
  881. fun void PageUp=2320(,)
  882. # Move caret one page up extending selection to new caret position.
  883. fun void PageUpExtend=2321(,)
  884. # Move caret one page down.
  885. fun void PageDown=2322(,)
  886. # Move caret one page down extending selection to new caret position.
  887. fun void PageDownExtend=2323(,)
  888. # Switch from insert to overtype mode or the reverse.
  889. fun void EditToggleOvertype=2324(,)
  890. # Cancel any modes such as call tip or auto-completion list display.
  891. fun void Cancel=2325(,)
  892. # Delete the selection or if no selection, the character before the caret.
  893. fun void DeleteBack=2326(,)
  894. # If selection is empty or all on one line replace the selection with a tab character.
  895. # If more than one line selected, indent the lines.
  896. fun void Tab=2327(,)
  897. # Dedent the selected lines.
  898. fun void BackTab=2328(,)
  899. # Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
  900. fun void NewLine=2329(,)
  901. # Insert a Form Feed character.
  902. fun void FormFeed=2330(,)
  903. # Move caret to before first visible character on line.
  904. # If already there move to first character on line.
  905. fun void VCHome=2331(,)
  906. # Like VCHome but extending selection to new caret position.
  907. fun void VCHomeExtend=2332(,)
  908. # Magnify the displayed text by increasing the sizes by 1 point.
  909. fun void ZoomIn=2333(,)
  910. # Make the displayed text smaller by decreasing the sizes by 1 point.
  911. fun void ZoomOut=2334(,)
  912. # Delete the word to the left of the caret.
  913. fun void DelWordLeft=2335(,)
  914. # Delete the word to the right of the caret.
  915. fun void DelWordRight=2336(,)
  916. # Cut the line containing the caret.
  917. fun void LineCut=2337(,)
  918. # Delete the line containing the caret.
  919. fun void LineDelete=2338(,)
  920. # Switch the current line with the previous.
  921. fun void LineTranspose=2339(,)
  922. # Duplicate the current line.
  923. fun void LineDuplicate=2404(,)
  924. # Transform the selection to lower case.
  925. fun void LowerCase=2340(,)
  926. # Transform the selection to upper case.
  927. fun void UpperCase=2341(,)
  928. # Scroll the document down, keeping the caret visible.
  929. fun void LineScrollDown=2342(,)
  930. # Scroll the document up, keeping the caret visible.
  931. fun void LineScrollUp=2343(,)
  932. # Delete the selection or if no selection, the character before the caret.
  933. # Will not delete the character before at the start of a line.
  934. fun void DeleteBackNotLine=2344(,)
  935. # Move caret to first position on display line.
  936. fun void HomeDisplay=2345(,)
  937. # Move caret to first position on display line extending selection to
  938. # new caret position.
  939. fun void HomeDisplayExtend=2346(,)
  940. # Move caret to last position on display line.
  941. fun void LineEndDisplay=2347(,)
  942. # Move caret to last position on display line extending selection to new
  943. # caret position.
  944. fun void LineEndDisplayExtend=2348(,)
  945. # These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
  946. # except they behave differently when word-wrap is enabled:
  947. # They go first to the start / end of the display line, like (Home|LineEnd)Display
  948. # The difference is that, the cursor is already at the point, it goes on to the start
  949. # or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
  950. fun void HomeWrap=2349(,)
  951. fun void HomeWrapExtend=2450(,)
  952. fun void LineEndWrap=2451(,)
  953. fun void LineEndWrapExtend=2452(,)
  954. fun void VCHomeWrap=2453(,)
  955. fun void VCHomeWrapExtend=2454(,)
  956. # Copy the line containing the caret.
  957. fun void LineCopy=2455(,)
  958. # Move the caret inside current view if it's not there already.
  959. fun void MoveCaretInsideView=2401(,)
  960. # How many characters are on a line, not including end of line characters?
  961. fun int LineLength=2350(int line,)
  962. # Highlight the characters at two positions.
  963. fun void BraceHighlight=2351(position pos1, position pos2)
  964. # Highlight the character at a position indicating there is no matching brace.
  965. fun void BraceBadLight=2352(position pos,)
  966. # Find the position of a matching brace or INVALID_POSITION if no match.
  967. fun position BraceMatch=2353(position pos,)
  968. # Are the end of line characters visible?
  969. get bool GetViewEOL=2355(,)
  970. # Make the end of line characters visible or invisible.
  971. set void SetViewEOL=2356(bool visible,)
  972. # Retrieve a pointer to the document object.
  973. get int GetDocPointer=2357(,)
  974. # Change the document object used.
  975. set void SetDocPointer=2358(, int pointer)
  976. # Set which document modification events are sent to the container.
  977. set void SetModEventMask=2359(int mask,)
  978. enu EdgeVisualStyle=EDGE_
  979. val EDGE_NONE=0
  980. val EDGE_LINE=1
  981. val EDGE_BACKGROUND=2
  982. # Retrieve the column number which text should be kept within.
  983. get int GetEdgeColumn=2360(,)
  984. # Set the column number of the edge.
  985. # If text goes past the edge then it is highlighted.
  986. set void SetEdgeColumn=2361(int column,)
  987. # Retrieve the edge highlight mode.
  988. get int GetEdgeMode=2362(,)
  989. # The edge may be displayed by a line (EDGE_LINE) or by highlighting text that
  990. # goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).
  991. set void SetEdgeMode=2363(int mode,)
  992. # Retrieve the colour used in edge indication.
  993. get colour GetEdgeColour=2364(,)
  994. # Change the colour used in edge indication.
  995. set void SetEdgeColour=2365(colour edgeColour,)
  996. # Sets the current caret position to be the search anchor.
  997. fun void SearchAnchor=2366(,)
  998. # Find some text starting at the search anchor.
  999. # Does not ensure the selection is visible.
  1000. fun int SearchNext=2367(int flags, string text)
  1001. # Find some text starting at the search anchor and moving backwards.
  1002. # Does not ensure the selection is visible.
  1003. fun int SearchPrev=2368(int flags, string text)
  1004. # Retrieves the number of lines completely visible.
  1005. get int LinesOnScreen=2370(,)
  1006. # Set whether a pop up menu is displayed automatically when the user presses
  1007. # the wrong mouse button.
  1008. fun void UsePopUp=2371(bool allowPopUp,)
  1009. # Is the selection rectangular? The alternative is the more common stream selection.
  1010. get bool SelectionIsRectangle=2372(,)
  1011. # Set the zoom level. This number of points is added to the size of all fonts.
  1012. # It may be positive to magnify or negative to reduce.
  1013. set void SetZoom=2373(int zoom,)
  1014. # Retrieve the zoom level.
  1015. get int GetZoom=2374(,)
  1016. # Create a new document object.
  1017. # Starts with reference count of 1 and not selected into editor.
  1018. fun int CreateDocument=2375(,)
  1019. # Extend life of document.
  1020. fun void AddRefDocument=2376(, int doc)
  1021. # Release a reference to the document, deleting document if it fades to black.
  1022. fun void ReleaseDocument=2377(, int doc)
  1023. # Get which document modification events are sent to the container.
  1024. get int GetModEventMask=2378(,)
  1025. # Change internal focus flag.
  1026. set void SetFocus=2380(bool focus,)
  1027. # Get internal focus flag.
  1028. get bool GetFocus=2381(,)
  1029. # Change error status - 0 = OK.
  1030. set void SetStatus=2382(int statusCode,)
  1031. # Get error status.
  1032. get int GetStatus=2383(,)
  1033. # Set whether the mouse is captured when its button is pressed.
  1034. set void SetMouseDownCaptures=2384(bool captures,)
  1035. # Get whether mouse gets captured.
  1036. get bool GetMouseDownCaptures=2385(,)
  1037. enu CursorShape=SC_CURSOR
  1038. val SC_CURSORNORMAL=-1
  1039. val SC_CURSORWAIT=4
  1040. # Sets the cursor to one of the SC_CURSOR* values.
  1041. set void SetCursor=2386(int cursorType,)
  1042. # Get cursor type.
  1043. get int GetCursor=2387(,)
  1044. # Change the way control characters are displayed:
  1045. # If symbol is < 32, keep the drawn way, else, use the given character.
  1046. set void SetControlCharSymbol=2388(int symbol,)
  1047. # Get the way control characters are displayed.
  1048. get int GetControlCharSymbol=2389(,)
  1049. # Move to the previous change in capitalisation.
  1050. fun void WordPartLeft=2390(,)
  1051. # Move to the previous change in capitalisation extending selection
  1052. # to new caret position.
  1053. fun void WordPartLeftExtend=2391(,)
  1054. # Move to the change next in capitalisation.
  1055. fun void WordPartRight=2392(,)
  1056. # Move to the next change in capitalisation extending selection
  1057. # to new caret position.
  1058. fun void WordPartRightExtend=2393(,)
  1059. # Constants for use with SetVisiblePolicy, similar to SetCaretPolicy.
  1060. val VISIBLE_SLOP=0x01
  1061. val VISIBLE_STRICT=0x04
  1062. # Set the way the display area is determined when a particular line
  1063. # is to be moved to by Find, FindNext, GotoLine, etc.
  1064. fun void SetVisiblePolicy=2394(int visiblePolicy, int visibleSlop)
  1065. # Delete back from the current position to the start of the line.
  1066. fun void DelLineLeft=2395(,)
  1067. # Delete forwards from the current position to the end of the line.
  1068. fun void DelLineRight=2396(,)
  1069. # Get and Set the xOffset (ie, horizonal scroll position).
  1070. set void SetXOffset=2397(int newOffset,)
  1071. get int GetXOffset=2398(,)
  1072. # Set the last x chosen value to be the caret x position.
  1073. fun void ChooseCaretX=2399(,)
  1074. # Set the focus to this Scintilla widget.
  1075. fun void GrabFocus=2400(,)
  1076. enu CaretPolicy = CARET_
  1077. # Caret policy, used by SetXCaretPolicy and SetYCaretPolicy.
  1078. # If CARET_SLOP is set, we can define a slop value: caretSlop.
  1079. # This value defines an unwanted zone (UZ) where the caret is... unwanted.
  1080. # This zone is defined as a number of pixels near the vertical margins,
  1081. # and as a number of lines near the horizontal margins.
  1082. # By keeping the caret away from the edges, it is seen within its context,
  1083. # so it is likely that the identifier that the caret is on can be completely seen,
  1084. # and that the current line is seen with some of the lines following it which are
  1085. # often dependent on that line.
  1086. val CARET_SLOP=0x01
  1087. # If CARET_STRICT is set, the policy is enforced... strictly.
  1088. # The caret is centred on the display if slop is not set,
  1089. # and cannot go in the UZ if slop is set.
  1090. val CARET_STRICT=0x04
  1091. # If CARET_JUMPS is set, the display is moved more energetically
  1092. # so the caret can move in the same direction longer before the policy is applied again.
  1093. val CARET_JUMPS=0x10
  1094. # If CARET_EVEN is not set, instead of having symmetrical UZs,
  1095. # the left and bottom UZs are extended up to right and top UZs respectively.
  1096. # This way, we favour the displaying of useful information: the begining of lines,
  1097. # where most code reside, and the lines after the caret, eg. the body of a function.
  1098. val CARET_EVEN=0x08
  1099. # Set the way the caret is kept visible when going sideway.
  1100. # The exclusion zone is given in pixels.
  1101. fun void SetXCaretPolicy=2402(int caretPolicy, int caretSlop)
  1102. # Set the way the line the caret is on is kept visible.
  1103. # The exclusion zone is given in lines.
  1104. fun void SetYCaretPolicy=2403(int caretPolicy, int caretSlop)
  1105. # Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE).
  1106. set void SetPrintWrapMode=2406(int mode,)
  1107. # Is printing line wrapped?
  1108. get int GetPrintWrapMode=2407(,)
  1109. # Set a fore colour for active hotspots.
  1110. set void SetHotspotActiveFore=2410(bool useSetting, colour fore)
  1111. # Set a back colour for active hotspots.
  1112. set void SetHotspotActiveBack=2411(bool useSetting, colour back)
  1113. # Enable / Disable underlining active hotspots.
  1114. set void SetHotspotActiveUnderline=2412(bool underline,)
  1115. # Limit hotspots to single line so hotspots on two lines don't merge.
  1116. set void SetHotspotSingleLine=2421(bool singleLine,)
  1117. # Move caret between paragraphs (delimited by empty lines).
  1118. fun void ParaDown=2413(,)
  1119. fun void ParaDownExtend=2414(,)
  1120. fun void ParaUp=2415(,)
  1121. fun void ParaUpExtend=2416(,)
  1122. # Given a valid document position, return the previous position taking code
  1123. # page into account. Returns 0 if passed 0.
  1124. fun position PositionBefore=2417(position pos,)
  1125. # Given a valid document position, return the next position taking code
  1126. # page into account. Maximum value returned is the last position in the document.
  1127. fun position PositionAfter=2418(position pos,)
  1128. # Copy a range of text to the clipboard. Positions are clipped into the document.
  1129. fun void CopyRange=2419(position start, position end)
  1130. # Copy argument text to the clipboard.
  1131. fun void CopyText=2420(int length, string text)
  1132. enu SelectionMode=SC_SEL_
  1133. val SC_SEL_STREAM=0
  1134. val SC_SEL_RECTANGLE=1
  1135. val SC_SEL_LINES=2
  1136. # Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE) or
  1137. # by lines (SC_SEL_LINES).
  1138. set void SetSelectionMode=2422(int mode,)
  1139. # Get the mode of the current selection.
  1140. get int GetSelectionMode=2423(,)
  1141. # Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line).
  1142. fun position GetLineSelStartPosition=2424(int line,)
  1143. # Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line).
  1144. fun position GetLineSelEndPosition=2425(int line,)
  1145. ## RectExtended rectangular selection moves
  1146. # Move caret down one line, extending rectangular selection to new caret position.
  1147. fun void LineDownRectExtend=2426(,)
  1148. # Move caret up one line, extending rectangular selection to new caret position.
  1149. fun void LineUpRectExtend=2427(,)
  1150. # Move caret left one character, extending rectangular selection to new caret position.
  1151. fun void CharLeftRectExtend=2428(,)
  1152. # Move caret right one character, extending rectangular selection to new caret position.
  1153. fun void CharRightRectExtend=2429(,)
  1154. # Move caret to first position on line, extending rectangular selection to new caret position.
  1155. fun void HomeRectExtend=2430(,)
  1156. # Move caret to before first visible character on line.
  1157. # If already there move to first character on line.
  1158. # In either case, extend rectangular selection to new caret position.
  1159. fun void VCHomeRectExtend=2431(,)
  1160. # Move caret to last position on line, extending rectangular selection to new caret position.
  1161. fun void LineEndRectExtend=2432(,)
  1162. # Move caret one page up, extending rectangular selection to new caret position.
  1163. fun void PageUpRectExtend=2433(,)
  1164. # Move caret one page down, extending rectangular selection to new caret position.
  1165. fun void PageDownRectExtend=2434(,)
  1166. # Move caret to top of page, or one page up if already at top of page.
  1167. fun void StutteredPageUp=2435(,)
  1168. # Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.
  1169. fun void StutteredPageUpExtend=2436(,)
  1170. # Move caret to bottom of page, or one page down if already at bottom of page.
  1171. fun void StutteredPageDown=2437(,)
  1172. # Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.
  1173. fun void StutteredPageDownExtend=2438(,)
  1174. # Move caret left one word, position cursor at end of word.
  1175. fun void WordLeftEnd=2439(,)
  1176. # Move caret left one word, position cursor at end of word, extending selection to new caret position.
  1177. fun void WordLeftEndExtend=2440(,)
  1178. # Move caret right one word, position cursor at end of word.
  1179. fun void WordRightEnd=2441(,)
  1180. # Move caret right one word, position cursor at end of word, extending selection to new caret position.
  1181. fun void WordRightEndExtend=2442(,)
  1182. # Set the set of characters making up whitespace for when moving or selecting by word.
  1183. # Should be called after SetWordChars.
  1184. set void SetWhitespaceChars=2443(, string characters)
  1185. # Reset the set of characters for whitespace and word characters to the defaults.
  1186. fun void SetCharsDefault=2444(,)
  1187. # Get currently selected item position in the auto-completion list
  1188. fun int AutoCGetCurrent=2445(,)
  1189. # Enlarge the document to a particular size of text bytes.
  1190. fun void Allocate=2446(int bytes,)
  1191. # Returns the target converted to UTF8.
  1192. # Return the length in bytes.
  1193. fun int TargetAsUTF8=2447(, stringresult s)
  1194. # Set the length of the utf8 argument for calling EncodedFromUTF8.
  1195. # Set to -1 and the string will be measured to the first nul.
  1196. fun void SetLengthForEncode=2448(int bytes,)
  1197. # Translates a UTF8 string into the document encoding.
  1198. # Return the length of the result in bytes.
  1199. # On error return 0.
  1200. fun int EncodedFromUTF8=2449(string utf8, stringresult encoded)
  1201. # Find the position of a column on a line taking into account tabs and
  1202. # multi-byte characters. If beyond end of line, return line end position.
  1203. fun int FindColumn=2456(int line, int column)
  1204. # Can the caret preferred x position only be changed by explicit movement commands?
  1205. get bool GetCaretSticky=2457(,)
  1206. # Stop the caret preferred x position changing when the user types.
  1207. set void SetCaretSticky=2458(bool useCaretStickyBehaviour,)
  1208. # Switch between sticky and non-sticky: meant to be bound to a key.
  1209. fun void ToggleCaretSticky=2459(,)
  1210. # Enable/Disable convert-on-paste for line endings
  1211. set void SetPasteConvertEndings=2467(bool convert,)
  1212. # Get convert-on-paste setting
  1213. get bool GetPasteConvertEndings=2468(,)
  1214. # Duplicate the selection. If selection empty duplicate the line containing the caret.
  1215. fun void SelectionDuplicate=2469(,)
  1216. val SC_ALPHA_TRANSPARENT=0
  1217. val SC_ALPHA_OPAQUE=255
  1218. val SC_ALPHA_NOALPHA=256
  1219. # Set background alpha of the caret line.
  1220. set void SetCaretLineBackAlpha=2470(int alpha,)
  1221. # Get the background alpha of the caret line.
  1222. get int GetCaretLineBackAlpha=2471(,)
  1223. # Start notifying the container of all key presses and commands.
  1224. fun void StartRecord=3001(,)
  1225. # Stop notifying the container of all key presses and commands.
  1226. fun void StopRecord=3002(,)
  1227. # Set the lexing language of the document.
  1228. set void SetLexer=4001(int lexer,)
  1229. # Retrieve the lexing language of the document.
  1230. get int GetLexer=4002(,)
  1231. # Colourise a segment of the document using the current lexing language.
  1232. fun void Colourise=4003(position start, position end)
  1233. # Set up a value that may be used by a lexer for some optional feature.
  1234. set void SetProperty=4004(string key, string value)
  1235. # Maximum value of keywordSet parameter of SetKeyWords.
  1236. val KEYWORDSET_MAX=8
  1237. # Set up the key words used by the lexer.
  1238. set void SetKeyWords=4005(int keywordSet, string keyWords)
  1239. # Set the lexing language of the document based on string name.
  1240. set void SetLexerLanguage=4006(, string language)
  1241. # Load a lexer library (dll / so).
  1242. fun void LoadLexerLibrary=4007(, string path)
  1243. # Retrieve a "property" value previously set with SetProperty.
  1244. fun int GetProperty=4008(string key, stringresult buf)
  1245. # Retrieve a "property" value previously set with SetProperty,
  1246. # with "$()" variable replacement on returned buffer.
  1247. fun int GetPropertyExpanded=4009(string key, stringresult buf)
  1248. # Retrieve a "property" value previously set with SetProperty,
  1249. # interpreted as an int AFTER any "$()" variable replacement.
  1250. get int GetPropertyInt=4010(string key,)
  1251. # Retrieve the number of bits the current lexer needs for styling.
  1252. get int GetStyleBitsNeeded=4011(,)
  1253. # Notifications
  1254. # Type of modification and the action which caused the modification.
  1255. # These are defined as a bit mask to make it easy to specify which notifications are wanted.
  1256. # One bit is set from each of SC_MOD_* and SC_PERFORMED_*.
  1257. enu ModificationFlags=SC_MOD_ SC_PERFORMED_ SC_LAST
  1258. val SC_MOD_INSERTTEXT=0x1
  1259. val SC_MOD_DELETETEXT=0x2
  1260. val SC_MOD_CHANGESTYLE=0x4
  1261. val SC_MOD_CHANGEFOLD=0x8
  1262. val SC_PERFORMED_USER=0x10
  1263. val SC_PERFORMED_UNDO=0x20
  1264. val SC_PERFORMED_REDO=0x40
  1265. val SC_MULTISTEPUNDOREDO=0x80
  1266. val SC_LASTSTEPINUNDOREDO=0x100
  1267. val SC_MOD_CHANGEMARKER=0x200
  1268. val SC_MOD_BEFOREINSERT=0x400
  1269. val SC_MOD_BEFOREDELETE=0x800
  1270. val SC_MULTILINEUNDOREDO=0x1000
  1271. val SC_MODEVENTMASKALL=0x1FFF
  1272. # For compatibility, these go through the COMMAND notification rather than NOTIFY
  1273. # and should have had exactly the same values as the EN_* constants.
  1274. # Unfortunately the SETFOCUS and KILLFOCUS are flipped over from EN_*
  1275. # As clients depend on these constants, this will not be changed.
  1276. val SCEN_CHANGE=768
  1277. val SCEN_SETFOCUS=512
  1278. val SCEN_KILLFOCUS=256
  1279. # Symbolic key codes and modifier flags.
  1280. # ASCII and other printable characters below 256.
  1281. # Extended keys above 300.
  1282. enu Keys=SCK_
  1283. val SCK_DOWN=300
  1284. val SCK_UP=301
  1285. val SCK_LEFT=302
  1286. val SCK_RIGHT=303
  1287. val SCK_HOME=304
  1288. val SCK_END=305
  1289. val SCK_PRIOR=306
  1290. val SCK_NEXT=307
  1291. val SCK_DELETE=308
  1292. val SCK_INSERT=309
  1293. val SCK_ESCAPE=7
  1294. val SCK_BACK=8
  1295. val SCK_TAB=9
  1296. val SCK_RETURN=13
  1297. val SCK_ADD=310
  1298. val SCK_SUBTRACT=311
  1299. val SCK_DIVIDE=312
  1300. enu KeyMod=SCMOD_
  1301. val SCMOD_NORM=0
  1302. val SCMOD_SHIFT=1
  1303. val SCMOD_CTRL=2
  1304. val SCMOD_ALT=4
  1305. ################################################
  1306. # For SciLexer.h
  1307. enu Lexer=SCLEX_
  1308. val SCLEX_CONTAINER=0
  1309. val SCLEX_NULL=1
  1310. val SCLEX_PYTHON=2
  1311. val SCLEX_CPP=3
  1312. val SCLEX_HTML=4
  1313. val SCLEX_XML=5
  1314. val SCLEX_PERL=6
  1315. val SCLEX_SQL=7
  1316. val SCLEX_VB=8
  1317. val SCLEX_PROPERTIES=9
  1318. val SCLEX_ERRORLIST=10
  1319. val SCLEX_MAKEFILE=11
  1320. val SCLEX_BATCH=12
  1321. val SCLEX_XCODE=13
  1322. val SCLEX_LATEX=14
  1323. val SCLEX_LUA=15
  1324. val SCLEX_DIFF=16
  1325. val SCLEX_CONF=17
  1326. val SCLEX_PASCAL=18
  1327. val SCLEX_AVE=19
  1328. val SCLEX_ADA=20
  1329. val SCLEX_LISP=21
  1330. val SCLEX_RUBY=22
  1331. val SCLEX_EIFFEL=23
  1332. val SCLEX_EIFFELKW=24
  1333. val SCLEX_TCL=25
  1334. val SCLEX_NNCRONTAB=26
  1335. val SCLEX_BULLANT=27
  1336. val SCLEX_VBSCRIPT=28
  1337. val SCLEX_BAAN=31
  1338. val SCLEX_MATLAB=32
  1339. val SCLEX_SCRIPTOL=33
  1340. val SCLEX_ASM=34
  1341. val SCLEX_CPPNOCASE=35
  1342. val SCLEX_FORTRAN=36
  1343. val SCLEX_F77=37
  1344. val SCLEX_CSS=38
  1345. val SCLEX_POV=39
  1346. val SCLEX_LOUT=40
  1347. val SCLEX_ESCRIPT=41
  1348. val SCLEX_PS=42
  1349. val SCLEX_NSIS=43
  1350. val SCLEX_MMIXAL=44
  1351. val SCLEX_CLW=45
  1352. val SCLEX_CLWNOCASE=46
  1353. val SCLEX_LOT=47
  1354. val SCLEX_YAML=48
  1355. val SCLEX_TEX=49
  1356. val SCLEX_METAPOST=50
  1357. val SCLEX_POWERBASIC=51
  1358. val SCLEX_FORTH=52
  1359. val SCLEX_ERLANG=53
  1360. val SCLEX_OCTAVE=54
  1361. val SCLEX_MSSQL=55
  1362. val SCLEX_VERILOG=56
  1363. val SCLEX_KIX=57
  1364. val SCLEX_GUI4CLI=58
  1365. val SCLEX_SPECMAN=59
  1366. val SCLEX_AU3=60
  1367. val SCLEX_APDL=61
  1368. val SCLEX_BASH=62
  1369. val SCLEX_ASN1=63
  1370. val SCLEX_VHDL=64
  1371. val SCLEX_CAML=65
  1372. val SCLEX_BLITZBASIC=66
  1373. val SCLEX_PUREBASIC=67
  1374. val SCLEX_HASKELL=68
  1375. val SCLEX_PHPSCRIPT=69
  1376. val SCLEX_TADS3=70
  1377. val SCLEX_REBOL=71
  1378. val SCLEX_SMALLTALK=72
  1379. val SCLEX_FLAGSHIP=73
  1380. val SCLEX_CSOUND=74
  1381. val SCLEX_FREEBASIC=75
  1382. val SCLEX_INNOSETUP=76
  1383. val SCLEX_OPAL=77
  1384. val SCLEX_SPICE=78
  1385. # When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
  1386. # value assigned in sequence from SCLEX_AUTOMATIC+1.
  1387. val SCLEX_AUTOMATIC=1000
  1388. # Lexical states for SCLEX_PYTHON
  1389. lex Python=SCLEX_PYTHON SCE_P_
  1390. val SCE_P_DEFAULT=0
  1391. val SCE_P_COMMENTLINE=1
  1392. val SCE_P_NUMBER=2
  1393. val SCE_P_STRING=3
  1394. val SCE_P_CHARACTER=4
  1395. val SCE_P_WORD=5
  1396. val SCE_P_TRIPLE=6
  1397. val SCE_P_TRIPLEDOUBLE=7
  1398. val SCE_P_CLASSNAME=8
  1399. val SCE_P_DEFNAME=9
  1400. val SCE_P_OPERATOR=10
  1401. val SCE_P_IDENTIFIER=11
  1402. val SCE_P_COMMENTBLOCK=12
  1403. val SCE_P_STRINGEOL=13
  1404. val SCE_P_WORD2=14
  1405. val SCE_P_DECORATOR=15
  1406. # Lexical states for SCLEX_CPP
  1407. lex Cpp=SCLEX_CPP SCE_C_
  1408. lex Pascal=SCLEX_PASCAL SCE_C_
  1409. lex BullAnt=SCLEX_BULLANT SCE_C_
  1410. val SCE_C_DEFAULT=0
  1411. val SCE_C_COMMENT=1
  1412. val SCE_C_COMMENTLINE=2
  1413. val SCE_C_COMMENTDOC=3
  1414. val SCE_C_NUMBER=4
  1415. val SCE_C_WORD=5
  1416. val SCE_C_STRING=6
  1417. val SCE_C_CHARACTER=7
  1418. val SCE_C_UUID=8
  1419. val SCE_C_PREPROCESSOR=9
  1420. val SCE_C_OPERATOR=10
  1421. val SCE_C_IDENTIFIER=11
  1422. val SCE_C_STRINGEOL=12
  1423. val SCE_C_VERBATIM=13
  1424. val SCE_C_REGEX=14
  1425. val SCE_C_COMMENTLINEDOC=15
  1426. val SCE_C_WORD2=16
  1427. val SCE_C_COMMENTDOCKEYWORD=17
  1428. val SCE_C_COMMENTDOCKEYWORDERROR=18
  1429. val SCE_C_GLOBALCLASS=19
  1430. # Lexical states for SCLEX_TCL
  1431. lex TCL=SCLEX_TCL SCE_TCL_
  1432. val SCE_TCL_DEFAULT=0
  1433. val SCE_TCL_COMMENT=1
  1434. val SCE_TCL_COMMENTLINE=2
  1435. val SCE_TCL_NUMBER=3
  1436. val SCE_TCL_WORD_IN_QUOTE=4
  1437. val SCE_TCL_IN_QUOTE=5
  1438. val SCE_TCL_OPERATOR=6
  1439. val SCE_TCL_IDENTIFIER=7
  1440. val SCE_TCL_SUBSTITUTION=8
  1441. val SCE_TCL_SUB_BRACE=9
  1442. val SCE_TCL_MODIFIER=10
  1443. val SCE_TCL_EXPAND=11
  1444. val SCE_TCL_WORD=12
  1445. val SCE_TCL_WORD2=13
  1446. val SCE_TCL_WORD3=14
  1447. val SCE_TCL_WORD4=15
  1448. val SCE_TCL_WORD5=16
  1449. val SCE_TCL_WORD6=17
  1450. val SCE_TCL_WORD7=18
  1451. val SCE_TCL_WORD8=19
  1452. val SCE_TCL_COMMENT_BOX=20
  1453. val SCE_TCL_BLOCK_COMMENT=21
  1454. # Lexical states for SCLEX_HTML, SCLEX_XML
  1455. lex HTML=SCLEX_HTML SCE_H
  1456. lex XML=SCLEX_XML SCE_H
  1457. lex ASP=SCLEX_ASP SCE_H
  1458. lex PHP=SCLEX_PHP SCE_H
  1459. val SCE_H_DEFAULT=0
  1460. val SCE_H_TAG=1
  1461. val SCE_H_TAGUNKNOWN=2
  1462. val SCE_H_ATTRIBUTE=3
  1463. val SCE_H_ATTRIBUTEUNKNOWN=4
  1464. val SCE_H_NUMBER=5
  1465. val SCE_H_DOUBLESTRING=6
  1466. val SCE_H_SINGLESTRING=7
  1467. val SCE_H_OTHER=8
  1468. val SCE_H_COMMENT=9
  1469. val SCE_H_ENTITY=10
  1470. # XML and ASP
  1471. val SCE_H_TAGEND=11
  1472. val SCE_H_XMLSTART=12
  1473. val SCE_H_XMLEND=13
  1474. val SCE_H_SCRIPT=14
  1475. val SCE_H_ASP=15
  1476. val SCE_H_ASPAT=16
  1477. val SCE_H_CDATA=17
  1478. val SCE_H_QUESTION=18
  1479. # More HTML
  1480. val SCE_H_VALUE=19
  1481. # X-Code
  1482. val SCE_H_XCCOMMENT=20
  1483. # SGML
  1484. val SCE_H_SGML_DEFAULT=21
  1485. val SCE_H_SGML_COMMAND=22
  1486. val SCE_H_SGML_1ST_PARAM=23
  1487. val SCE_H_SGML_DOUBLESTRING=24
  1488. val SCE_H_SGML_SIMPLESTRING=25
  1489. val SCE_H_SGML_ERROR=26
  1490. val SCE_H_SGML_SPECIAL=27
  1491. val SCE_H_SGML_ENTITY=28
  1492. val SCE_H_SGML_COMMENT=29
  1493. val SCE_H_SGML_1ST_PARAM_COMMENT=30
  1494. val SCE_H_SGML_BLOCK_DEFAULT=31
  1495. # Embedded Javascript
  1496. val SCE_HJ_START=40
  1497. val SCE_HJ_DEFAULT=41
  1498. val SCE_HJ_COMMENT=42
  1499. val SCE_HJ_COMMENTLINE=43
  1500. val SCE_HJ_COMMENTDOC=44
  1501. val SCE_HJ_NUMBER=45
  1502. val SCE_HJ_WORD=46
  1503. val SCE_HJ_KEYWORD=47
  1504. val SCE_HJ_DOUBLESTRING=48
  1505. val SCE_HJ_SINGLESTRING=49
  1506. val SCE_HJ_SYMBOLS=50
  1507. val SCE_HJ_STRINGEOL=51
  1508. val SCE_HJ_REGEX=52
  1509. # ASP Javascript
  1510. val SCE_HJA_START=55
  1511. val SCE_HJA_DEFAULT=56
  1512. val SCE_HJA_COMMENT=57
  1513. val SCE_HJA_COMMENTLINE=58
  1514. val SCE_HJA_COMMENTDOC=59
  1515. val SCE_HJA_NUMBER=60
  1516. val SCE_HJA_WORD=61
  1517. val SCE_HJA_KEYWORD=62
  1518. val SCE_HJA_DOUBLESTRING=63
  1519. val SCE_HJA_SINGLESTRING=64
  1520. val SCE_HJA_SYMBOLS=65
  1521. val SCE_HJA_STRINGEOL=66
  1522. val SCE_HJA_REGEX=67
  1523. # Embedded VBScript
  1524. val SCE_HB_START=70
  1525. val SCE_HB_DEFAULT=71
  1526. val SCE_HB_COMMENTLINE=72
  1527. val SCE_HB_NUMBER=73
  1528. val SCE_HB_WORD=74
  1529. val SCE_HB_STRING=75
  1530. val SCE_HB_IDENTIFIER=76
  1531. val SCE_HB_STRINGEOL=77
  1532. # ASP VBScript
  1533. val SCE_HBA_START=80
  1534. val SCE_HBA_DEFAULT=81
  1535. val SCE_HBA_COMMENTLINE=82
  1536. val SCE_HBA_NUMBER=83
  1537. val SCE_HBA_WORD=84
  1538. val SCE_HBA_STRING=85
  1539. val SCE_HBA_IDENTIFIER=86
  1540. val SCE_HBA_STRINGEOL=87
  1541. # Embedded Python
  1542. val SCE_HP_START=90
  1543. val SCE_HP_DEFAULT=91
  1544. val SCE_HP_COMMENTLINE=92
  1545. val SCE_HP_NUMBER=93
  1546. val SCE_HP_STRING=94
  1547. val SCE_HP_CHARACTER=95
  1548. val SCE_HP_WORD=96
  1549. val SCE_HP_TRIPLE=97
  1550. val SCE_HP_TRIPLEDOUBLE=98
  1551. val SCE_HP_CLASSNAME=99
  1552. val SCE_HP_DEFNAME=100
  1553. val SCE_HP_OPERATOR=101
  1554. val SCE_HP_IDENTIFIER=102
  1555. # PHP
  1556. val SCE_HPHP_COMPLEX_VARIABLE=104
  1557. # ASP Python
  1558. val SCE_HPA_START=105
  1559. val SCE_HPA_DEFAULT=106
  1560. val SCE_HPA_COMMENTLINE=107
  1561. val SCE_HPA_NUMBER=108
  1562. val SCE_HPA_STRING=109
  1563. val SCE_HPA_CHARACTER=110
  1564. val SCE_HPA_WORD=111
  1565. val SCE_HPA_TRIPLE=112
  1566. val SCE_HPA_TRIPLEDOUBLE=113
  1567. val SCE_HPA_CLASSNAME=114
  1568. val SCE_HPA_DEFNAME=115
  1569. val SCE_HPA_OPERATOR=116
  1570. val SCE_HPA_IDENTIFIER=117
  1571. # PHP
  1572. val SCE_HPHP_DEFAULT=118
  1573. val SCE_HPHP_HSTRING=119
  1574. val SCE_HPHP_SIMPLESTRING=120
  1575. val SCE_HPHP_WORD=121
  1576. val SCE_HPHP_NUMBER=122
  1577. val SCE_HPHP_VARIABLE=123
  1578. val SCE_HPHP_COMMENT=124
  1579. val SCE_HPHP_COMMENTLINE=125
  1580. val SCE_HPHP_HSTRING_VARIABLE=126
  1581. val SCE_HPHP_OPERATOR=127
  1582. # Lexical states for SCLEX_PERL
  1583. lex Perl=SCLEX_PERL SCE_PL_
  1584. val SCE_PL_DEFAULT=0
  1585. val SCE_PL_ERROR=1
  1586. val SCE_PL_COMMENTLINE=2
  1587. val SCE_PL_POD=3
  1588. val SCE_PL_NUMBER=4
  1589. val SCE_PL_WORD=5
  1590. val SCE_PL_STRING=6
  1591. val SCE_PL_CHARACTER=7
  1592. val SCE_PL_PUNCTUATION=8
  1593. val SCE_PL_PREPROCESSOR=9
  1594. val SCE_PL_OPERATOR=10
  1595. val SCE_PL_IDENTIFIER=11
  1596. val SCE_PL_SCALAR=12
  1597. val SCE_PL_ARRAY=13
  1598. val SCE_PL_HASH=14
  1599. val SCE_PL_SYMBOLTABLE=15
  1600. val SCE_PL_VARIABLE_INDEXER=16
  1601. val SCE_PL_REGEX=17
  1602. val SCE_PL_REGSUBST=18
  1603. val SCE_PL_LONGQUOTE=19
  1604. val SCE_PL_BACKTICKS=20
  1605. val SCE_PL_DATASECTION=21
  1606. val SCE_PL_HERE_DELIM=22
  1607. val SCE_PL_HERE_Q=23
  1608. val SCE_PL_HERE_QQ=24
  1609. val SCE_PL_HERE_QX=25
  1610. val SCE_PL_STRING_Q=26
  1611. val SCE_PL_STRING_QQ=27
  1612. val SCE_PL_STRING_QX=28
  1613. val SCE_PL_STRING_QR=29
  1614. val SCE_PL_STRING_QW=30
  1615. val SCE_PL_POD_VERB=31
  1616. # Lexical states for SCLEX_RUBY
  1617. lex Ruby=SCLEX_RUBY SCE_RB_
  1618. val SCE_RB_DEFAULT=0
  1619. val SCE_RB_ERROR=1
  1620. val SCE_RB_COMMENTLINE=2
  1621. val SCE_RB_POD=3
  1622. val SCE_RB_NUMBER=4
  1623. val SCE_RB_WORD=5
  1624. val SCE_RB_STRING=6
  1625. val SCE_RB_CHARACTER=7
  1626. val SCE_RB_CLASSNAME=8
  1627. val SCE_RB_DEFNAME=9
  1628. val SCE_RB_OPERATOR=10
  1629. val SCE_RB_IDENTIFIER=11
  1630. val SCE_RB_REGEX=12
  1631. val SCE_RB_GLOBAL=13
  1632. val SCE_RB_SYMBOL=14
  1633. val SCE_RB_MODULE_NAME=15
  1634. val SCE_RB_INSTANCE_VAR=16
  1635. val SCE_RB_CLASS_VAR=17
  1636. val SCE_RB_BACKTICKS=18
  1637. val SCE_RB_DATASECTION=19
  1638. val SCE_RB_HERE_DELIM=20
  1639. val SCE_RB_HERE_Q=21
  1640. val SCE_RB_HERE_QQ=22
  1641. val SCE_RB_HERE_QX=23
  1642. val SCE_RB_STRING_Q=24
  1643. val SCE_RB_STRING_QQ=25
  1644. val SCE_RB_STRING_QX=26
  1645. val SCE_RB_STRING_QR=27
  1646. val SCE_RB_STRING_QW=28
  1647. val SCE_RB_WORD_DEMOTED=29
  1648. val SCE_RB_STDIN=30
  1649. val SCE_RB_STDOUT=31
  1650. val SCE_RB_STDERR=40
  1651. val SCE_RB_UPPER_BOUND=41
  1652. # Lexical states for SCLEX_VB, SCLEX_VBSCRIPT, SCLEX_POWERBASIC
  1653. lex VB=SCLEX_VB SCE_B_
  1654. lex VBScript=SCLEX_VBSCRIPT SCE_B_
  1655. lex PowerBasic=SCLEX_POWERBASIC SCE_B_
  1656. val SCE_B_DEFAULT=0
  1657. val SCE_B_COMMENT=1
  1658. val SCE_B_NUMBER=2
  1659. val SCE_B_KEYWORD=3
  1660. val SCE_B_STRING=4
  1661. val SCE_B_PREPROCESSOR=5
  1662. val SCE_B_OPERATOR=6
  1663. val SCE_B_IDENTIFIER=7
  1664. val SCE_B_DATE=8
  1665. val SCE_B_STRINGEOL=9
  1666. val SCE_B_KEYWORD2=10
  1667. val SCE_B_KEYWORD3=11
  1668. val SCE_B_KEYWORD4=12
  1669. val SCE_B_CONSTANT=13
  1670. val SCE_B_ASM=14
  1671. val SCE_B_LABEL=15
  1672. val SCE_B_ERROR=16
  1673. val SCE_B_HEXNUMBER=17
  1674. val SCE_B_BINNUMBER=18
  1675. # Lexical states for SCLEX_PROPERTIES
  1676. lex Properties=SCLEX_PROPERTIES SCE_PROPS_
  1677. val SCE_PROPS_DEFAULT=0
  1678. val SCE_PROPS_COMMENT=1
  1679. val SCE_PROPS_SECTION=2
  1680. val SCE_PROPS_ASSIGNMENT=3
  1681. val SCE_PROPS_DEFVAL=4
  1682. val SCE_PROPS_KEY=5
  1683. # Lexical states for SCLEX_LATEX
  1684. lex LaTeX=SCLEX_LATEX SCE_L_
  1685. val SCE_L_DEFAULT=0
  1686. val SCE_L_COMMAND=1
  1687. val SCE_L_TAG=2
  1688. val SCE_L_MATH=3
  1689. val SCE_L_COMMENT=4
  1690. # Lexical states for SCLEX_LUA
  1691. lex Lua=SCLEX_LUA SCE_LUA_
  1692. val SCE_LUA_DEFAULT=0
  1693. val SCE_LUA_COMMENT=1
  1694. val SCE_LUA_COMMENTLINE=2
  1695. val SCE_LUA_COMMENTDOC=3
  1696. val SCE_LUA_NUMBER=4
  1697. val SCE_LUA_WORD=5
  1698. val SCE_LUA_STRING=6
  1699. val SCE_LUA_CHARACTER=7
  1700. val SCE_LUA_LITERALSTRING=8
  1701. val SCE_LUA_PREPROCESSOR=9
  1702. val SCE_LUA_OPERATOR=10
  1703. val SCE_LUA_IDENTIFIER=11
  1704. val SCE_LUA_STRINGEOL=12
  1705. val SCE_LUA_WORD2=13
  1706. val SCE_LUA_WORD3=14
  1707. val SCE_LUA_WORD4=15
  1708. val SCE_LUA_WORD5=16
  1709. val SCE_LUA_WORD6=17
  1710. val SCE_LUA_WORD7=18
  1711. val SCE_LUA_WORD8=19
  1712. # Lexical states for SCLEX_ERRORLIST
  1713. lex ErrorList=SCLEX_ERRORLIST SCE_ERR_
  1714. val SCE_ERR_DEFAULT=0
  1715. val SCE_ERR_PYTHON=1
  1716. val SCE_ERR_GCC=2
  1717. val SCE_ERR_MS=3
  1718. val SCE_ERR_CMD=4
  1719. val SCE_ERR_BORLAND=5
  1720. val SCE_ERR_PERL=6
  1721. val SCE_ERR_NET=7
  1722. val SCE_ERR_LUA=8
  1723. val SCE_ERR_CTAG=9
  1724. val SCE_ERR_DIFF_CHANGED=10
  1725. val SCE_ERR_DIFF_ADDITION=11
  1726. val SCE_ERR_DIFF_DELETION=12
  1727. val SCE_ERR_DIFF_MESSAGE=13
  1728. val SCE_ERR_PHP=14
  1729. val SCE_ERR_ELF=15
  1730. val SCE_ERR_IFC=16
  1731. val SCE_ERR_IFORT=17
  1732. val SCE_ERR_ABSF=18
  1733. val SCE_ERR_TIDY=19
  1734. val SCE_ERR_JAVA_STACK=20
  1735. # Lexical states for SCLEX_BATCH
  1736. lex Batch=SCLEX_BATCH SCE_BAT_
  1737. val SCE_BAT_DEFAULT=0
  1738. val SCE_BAT_COMMENT=1
  1739. val SCE_BAT_WORD=2
  1740. val SCE_BAT_LABEL=3
  1741. val SCE_BAT_HIDE=4
  1742. val SCE_BAT_COMMAND=5
  1743. val SCE_BAT_IDENTIFIER=6
  1744. val SCE_BAT_OPERATOR=7
  1745. # Lexical states for SCLEX_MAKEFILE
  1746. lex MakeFile=SCLEX_MAKEFILE SCE_MAKE_
  1747. val SCE_MAKE_DEFAULT=0
  1748. val SCE_MAKE_COMMENT=1
  1749. val SCE_MAKE_PREPROCESSOR=2
  1750. val SCE_MAKE_IDENTIFIER=3
  1751. val SCE_MAKE_OPERATOR=4
  1752. val SCE_MAKE_TARGET=5
  1753. val SCE_MAKE_IDEOL=9
  1754. # Lexical states for SCLEX_DIFF
  1755. lex Diff=SCLEX_DIFF SCE_DIFF_
  1756. val SCE_DIFF_DEFAULT=0
  1757. val SCE_DIFF_COMMENT=1
  1758. val SCE_DIFF_COMMAND=2
  1759. val SCE_DIFF_HEADER=3
  1760. val SCE_DIFF_POSITION=4
  1761. val SCE_DIFF_DELETED=5
  1762. val SCE_DIFF_ADDED=6
  1763. # Lexical states for SCLEX_CONF (Apache Configuration Files Lexer)
  1764. lex Conf=SCLEX_CONF SCE_CONF_
  1765. val SCE_CONF_DEFAULT=0
  1766. val SCE_CONF_COMMENT=1
  1767. val SCE_CONF_NUMBER=2
  1768. val SCE_CONF_IDENTIFIER=3
  1769. val SCE_CONF_EXTENSION=4
  1770. val SCE_CONF_PARAMETER=5
  1771. val SCE_CONF_STRING=6
  1772. val SCE_CONF_OPERATOR=7
  1773. val SCE_CONF_IP=8
  1774. val SCE_CONF_DIRECTIVE=9
  1775. # Lexical states for SCLEX_AVE, Avenue
  1776. lex Avenue=SCLEX_AVE SCE_AVE_
  1777. val SCE_AVE_DEFAULT=0
  1778. val SCE_AVE_COMMENT=1
  1779. val SCE_AVE_NUMBER=2
  1780. val SCE_AVE_WORD=3
  1781. val SCE_AVE_STRING=6
  1782. val SCE_AVE_ENUM=7
  1783. val SCE_AVE_STRINGEOL=8
  1784. val SCE_AVE_IDENTIFIER=9
  1785. val SCE_AVE_OPERATOR=10
  1786. val SCE_AVE_WORD1=11
  1787. val SCE_AVE_WORD2=12
  1788. val SCE_AVE_WORD3=13
  1789. val SCE_AVE_WORD4=14
  1790. val SCE_AVE_WORD5=15
  1791. val SCE_AVE_WORD6=16
  1792. # Lexical states for SCLEX_ADA
  1793. lex Ada=SCLEX_ADA SCE_ADA_
  1794. val SCE_ADA_DEFAULT=0
  1795. val SCE_ADA_WORD=1
  1796. val SCE_ADA_IDENTIFIER=2
  1797. val SCE_ADA_NUMBER=3
  1798. val SCE_ADA_DELIMITER=4
  1799. val SCE_ADA_CHARACTER=5
  1800. val SCE_ADA_CHARACTEREOL=6
  1801. val SCE_ADA_STRING=7
  1802. val SCE_ADA_STRINGEOL=8
  1803. val SCE_ADA_LABEL=9
  1804. val SCE_ADA_COMMENTLINE=10
  1805. val SCE_ADA_ILLEGAL=11
  1806. # Lexical states for SCLEX_BAAN
  1807. lex Baan=SCLEX_BAAN SCE_BAAN_
  1808. val SCE_BAAN_DEFAULT=0
  1809. val SCE_BAAN_COMMENT=1
  1810. val SCE_BAAN_COMMENTDOC=2
  1811. val SCE_BAAN_NUMBER=3
  1812. val SCE_BAAN_WORD=4
  1813. val SCE_BAAN_STRING=5
  1814. val SCE_BAAN_PREPROCESSOR=6
  1815. val SCE_BAAN_OPERATOR=7
  1816. val SCE_BAAN_IDENTIFIER=8
  1817. val SCE_BAAN_STRINGEOL=9
  1818. val SCE_BAAN_WORD2=10
  1819. # Lexical states for SCLEX_LISP
  1820. lex Lisp=SCLEX_LISP SCE_LISP_
  1821. val SCE_LISP_DEFAULT=0
  1822. val SCE_LISP_COMMENT=1
  1823. val SCE_LISP_NUMBER=2
  1824. val SCE_LISP_KEYWORD=3
  1825. val SCE_LISP_KEYWORD_KW=4
  1826. val SCE_LISP_SYMBOL=5
  1827. val SCE_LISP_STRING=6
  1828. val SCE_LISP_STRINGEOL=8
  1829. val SCE_LISP_IDENTIFIER=9
  1830. val SCE_LISP_OPERATOR=10
  1831. val SCE_LISP_SPECIAL=11
  1832. val SCE_LISP_MULTI_COMMENT=12
  1833. # Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW
  1834. lex Eiffel=SCLEX_EIFFEL SCE_EIFFEL_
  1835. lex EiffelKW=SCLEX_EIFFELKW SCE_EIFFEL_
  1836. val SCE_EIFFEL_DEFAULT=0
  1837. val SCE_EIFFEL_COMMENTLINE=1
  1838. val SCE_EIFFEL_NUMBER=2
  1839. val SCE_EIFFEL_WORD=3
  1840. val SCE_EIFFEL_STRING=4
  1841. val SCE_EIFFEL_CHARACTER=5
  1842. val SCE_EIFFEL_OPERATOR=6
  1843. val SCE_EIFFEL_IDENTIFIER=7
  1844. val SCE_EIFFEL_STRINGEOL=8
  1845. # Lexical states for SCLEX_NNCRONTAB (nnCron crontab Lexer)
  1846. lex NNCronTab=SCLEX_NNCRONTAB SCE_NNCRONTAB_
  1847. val SCE_NNCRONTAB_DEFAULT=0
  1848. val SCE_NNCRONTAB_COMMENT=1
  1849. val SCE_NNCRONTAB_TASK=2
  1850. val SCE_NNCRONTAB_SECTION=3
  1851. val SCE_NNCRONTAB_KEYWORD=4
  1852. val SCE_NNCRONTAB_MODIFIER=5
  1853. val SCE_NNCRONTAB_ASTERISK=6
  1854. val SCE_NNCRONTAB_NUMBER=7
  1855. val SCE_NNCRONTAB_STRING=8
  1856. val SCE_NNCRONTAB_ENVIRONMENT=9
  1857. val SCE_NNCRONTAB_IDENTIFIER=10
  1858. # Lexical states for SCLEX_FORTH (Forth Lexer)
  1859. lex Forth=SCLEX_FORTH SCE_FORTH_
  1860. val SCE_FORTH_DEFAULT=0
  1861. val SCE_FORTH_COMMENT=1
  1862. val SCE_FORTH_COMMENT_ML=2
  1863. val SCE_FORTH_IDENTIFIER=3
  1864. val SCE_FORTH_CONTROL=4
  1865. val SCE_FORTH_KEYWORD=5
  1866. val SCE_FORTH_DEFWORD=6
  1867. val SCE_FORTH_PREWORD1=7
  1868. val SCE_FORTH_PREWORD2=8
  1869. val SCE_FORTH_NUMBER=9
  1870. val SCE_FORTH_STRING=10
  1871. val SCE_FORTH_LOCALE=11
  1872. # Lexical states for SCLEX_MATLAB
  1873. lex MatLab=SCLEX_MATLAB SCE_MATLAB_
  1874. val SCE_MATLAB_DEFAULT=0
  1875. val SCE_MATLAB_COMMENT=1
  1876. val SCE_MATLAB_COMMAND=2
  1877. val SCE_MATLAB_NUMBER=3
  1878. val SCE_MATLAB_KEYWORD=4
  1879. # single quoted string
  1880. val SCE_MATLAB_STRING=5
  1881. val SCE_MATLAB_OPERATOR=6
  1882. val SCE_MATLAB_IDENTIFIER=7
  1883. val SCE_MATLAB_DOUBLEQUOTESTRING=8
  1884. # Lexical states for SCLEX_SCRIPTOL
  1885. lex Sol=SCLEX_SCRIPTOL SCE_SCRIPTOL_
  1886. val SCE_SCRIPTOL_DEFAULT=0
  1887. val SCE_SCRIPTOL_WHITE=1
  1888. val SCE_SCRIPTOL_COMMENTLINE=2
  1889. val SCE_SCRIPTOL_PERSISTENT=3
  1890. val SCE_SCRIPTOL_CSTYLE=4
  1891. val SCE_SCRIPTOL_COMMENTBLOCK=5
  1892. val SCE_SCRIPTOL_NUMBER=6
  1893. val SCE_SCRIPTOL_STRING=7
  1894. val SCE_SCRIPTOL_CHARACTER=8
  1895. val SCE_SCRIPTOL_STRINGEOL=9
  1896. val SCE_SCRIPTOL_KEYWORD=10
  1897. val SCE_SCRIPTOL_OPERATOR=11
  1898. val SCE_SCRIPTOL_IDENTIFIER=12
  1899. val SCE_SCRIPTOL_TRIPLE=13
  1900. val SCE_SCRIPTOL_CLASSNAME=14
  1901. val SCE_SCRIPTOL_PREPROCESSOR=15
  1902. # Lexical states for SCLEX_ASM
  1903. lex Asm=SCLEX_ASM SCE_ASM_
  1904. val SCE_ASM_DEFAULT=0
  1905. val SCE_ASM_COMMENT=1
  1906. val SCE_ASM_NUMBER=2
  1907. val SCE_ASM_STRING=3
  1908. val SCE_ASM_OPERATOR=4
  1909. val SCE_ASM_IDENTIFIER=5
  1910. val SCE_ASM_CPUINSTRUCTION=6
  1911. val SCE_ASM_MATHINSTRUCTION=7
  1912. val SCE_ASM_REGISTER=8
  1913. val SCE_ASM_DIRECTIVE=9
  1914. val SCE_ASM_DIRECTIVEOPERAND=10
  1915. val SCE_ASM_COMMENTBLOCK=11
  1916. val SCE_ASM_CHARACTER=12
  1917. val SCE_ASM_STRINGEOL=13
  1918. val SCE_ASM_EXTINSTRUCTION=14
  1919. # Lexical states for SCLEX_FORTRAN
  1920. lex Fortran=SCLEX_FORTRAN SCE_F_
  1921. lex F77=SCLEX_F77 SCE_F_
  1922. val SCE_F_DEFAULT=0
  1923. val SCE_F_COMMENT=1
  1924. val SCE_F_NUMBER=2
  1925. val SCE_F_STRING1=3
  1926. val SCE_F_STRING2=4
  1927. val SCE_F_STRINGEOL=5
  1928. val SCE_F_OPERATOR=6
  1929. val SCE_F_IDENTIFIER=7
  1930. val SCE_F_WORD=8
  1931. val SCE_F_WORD2=9
  1932. val SCE_F_WORD3=10
  1933. val SCE_F_PREPROCESSOR=11
  1934. val SCE_F_OPERATOR2=12
  1935. val SCE_F_LABEL=13
  1936. val SCE_F_CONTINUATION=14
  1937. # Lexical states for SCLEX_CSS
  1938. lex CSS=SCLEX_CSS SCE_CSS_
  1939. val SCE_CSS_DEFAULT=0
  1940. val SCE_CSS_TAG=1
  1941. val SCE_CSS_CLASS=2
  1942. val SCE_CSS_PSEUDOCLASS=3
  1943. val SCE_CSS_UNKNOWN_PSEUDOCLASS=4
  1944. val SCE_CSS_OPERATOR=5
  1945. val SCE_CSS_IDENTIFIER=6
  1946. val SCE_CSS_UNKNOWN_IDENTIFIER=7
  1947. val SCE_CSS_VALUE=8
  1948. val SCE_CSS_COMMENT=9
  1949. val SCE_CSS_ID=10
  1950. val SCE_CSS_IMPORTANT=11
  1951. val SCE_CSS_DIRECTIVE=12
  1952. val SCE_CSS_DOUBLESTRING=13
  1953. val SCE_CSS_SINGLESTRING=14
  1954. val SCE_CSS_IDENTIFIER2=15
  1955. val SCE_CSS_ATTRIBUTE=16
  1956. # Lexical states for SCLEX_POV
  1957. lex POV=SCLEX_POV SCE_POV_
  1958. val SCE_POV_DEFAULT=0
  1959. val SCE_POV_COMMENT=1
  1960. val SCE_POV_COMMENTLINE=2
  1961. val SCE_POV_NUMBER=3
  1962. val SCE_POV_OPERATOR=4
  1963. val SCE_POV_IDENTIFIER=5
  1964. val SCE_POV_STRING=6
  1965. val SCE_POV_STRINGEOL=7
  1966. val SCE_POV_DIRECTIVE=8
  1967. val SCE_POV_BADDIRECTIVE=9
  1968. val SCE_POV_WORD2=10
  1969. val SCE_POV_WORD3=11
  1970. val SCE_POV_WORD4=12
  1971. val SCE_POV_WORD5=13
  1972. val SCE_POV_WORD6=14
  1973. val SCE_POV_WORD7=15
  1974. val SCE_POV_WORD8=16
  1975. # Lexical states for SCLEX_LOUT
  1976. lex LOUT=SCLEX_LOUT SCE_LOUT_
  1977. val SCE_LOUT_DEFAULT=0
  1978. val SCE_LOUT_COMMENT=1
  1979. val SCE_LOUT_NUMBER=2
  1980. val SCE_LOUT_WORD=3
  1981. val SCE_LOUT_WORD2=4
  1982. val SCE_LOUT_WORD3=5
  1983. val SCE_LOUT_WORD4=6
  1984. val SCE_LOUT_STRING=7
  1985. val SCE_LOUT_OPERATOR=8
  1986. val SCE_LOUT_IDENTIFIER=9
  1987. val SCE_LOUT_STRINGEOL=10
  1988. # Lexical states for SCLEX_ESCRIPT
  1989. lex ESCRIPT=SCLEX_ESCRIPT SCE_ESCRIPT_
  1990. val SCE_ESCRIPT_DEFAULT=0
  1991. val SCE_ESCRIPT_COMMENT=1
  1992. val SCE_ESCRIPT_COMMENTLINE=2
  1993. val SCE_ESCRIPT_COMMENTDOC=3
  1994. val SCE_ESCRIPT_NUMBER=4
  1995. val SCE_ESCRIPT_WORD=5
  1996. val SCE_ESCRIPT_STRING=6
  1997. val SCE_ESCRIPT_OPERATOR=7
  1998. val SCE_ESCRIPT_IDENTIFIER=8
  1999. val SCE_ESCRIPT_BRACE=9
  2000. val SCE_ESCRIPT_WORD2=10
  2001. val SCE_ESCRIPT_WORD3=11
  2002. # Lexical states for SCLEX_PS
  2003. lex PS=SCLEX_PS SCE_PS_
  2004. val SCE_PS_DEFAULT=0
  2005. val SCE_PS_COMMENT=1
  2006. val SCE_PS_DSC_COMMENT=2
  2007. val SCE_PS_DSC_VALUE=3
  2008. val SCE_PS_NUMBER=4
  2009. val SCE_PS_NAME=5
  2010. val SCE_PS_KEYWORD=6
  2011. val SCE_PS_LITERAL=7
  2012. val SCE_PS_IMMEVAL=8
  2013. val SCE_PS_PAREN_ARRAY=9
  2014. val SCE_PS_PAREN_DICT=10
  2015. val SCE_PS_PAREN_PROC=11
  2016. val SCE_PS_TEXT=12
  2017. val SCE_PS_HEXSTRING=13
  2018. val SCE_PS_BASE85STRING=14
  2019. val SCE_PS_BADSTRINGCHAR=15
  2020. # Lexical states for SCLEX_NSIS
  2021. lex NSIS=SCLEX_NSIS SCE_NSIS_
  2022. val SCE_NSIS_DEFAULT=0
  2023. val SCE_NSIS_COMMENT=1
  2024. val SCE_NSIS_STRINGDQ=2
  2025. val SCE_NSIS_STRINGLQ=3
  2026. val SCE_NSIS_STRINGRQ=4
  2027. val SCE_NSIS_FUNCTION=5
  2028. val SCE_NSIS_VARIABLE=6
  2029. val SCE_NSIS_LABEL=7
  2030. val SCE_NSIS_USERDEFINED=8
  2031. val SCE_NSIS_SECTIONDEF=9
  2032. val SCE_NSIS_SUBSECTIONDEF=10
  2033. val SCE_NSIS_IFDEFINEDEF=11
  2034. val SCE_NSIS_MACRODEF=12
  2035. val SCE_NSIS_STRINGVAR=13
  2036. val SCE_NSIS_NUMBER=14
  2037. val SCE_NSIS_SECTIONGROUP=15
  2038. val SCE_NSIS_PAGEEX=16
  2039. val SCE_NSIS_FUNCTIONDEF=17
  2040. val SCE_NSIS_COMMENTBOX=18
  2041. # Lexical states for SCLEX_MMIXAL
  2042. lex MMIXAL=SCLEX_MMIXAL SCE_MMIXAL_
  2043. val SCE_MMIXAL_LEADWS=0
  2044. val SCE_MMIXAL_COMMENT=1
  2045. val SCE_MMIXAL_LABEL=2
  2046. val SCE_MMIXAL_OPCODE=3
  2047. val SCE_MMIXAL_OPCODE_PRE=4
  2048. val SCE_MMIXAL_OPCODE_VALID=5
  2049. val SCE_MMIXAL_OPCODE_UNKNOWN=6
  2050. val SCE_MMIXAL_OPCODE_POST=7
  2051. val SCE_MMIXAL_OPERANDS=8
  2052. val SCE_MMIXAL_NUMBER=9
  2053. val SCE_MMIXAL_REF=10
  2054. val SCE_MMIXAL_CHAR=11
  2055. val SCE_MMIXAL_STRING=12
  2056. val SCE_MMIXAL_REGISTER=13
  2057. val SCE_MMIXAL_HEX=14
  2058. val SCE_MMIXAL_OPERATOR=15
  2059. val SCE_MMIXAL_SYMBOL=16
  2060. val SCE_MMIXAL_INCLUDE=17
  2061. # Lexical states for SCLEX_CLW
  2062. lex Clarion=SCLEX_CLW SCE_CLW_
  2063. val SCE_CLW_DEFAULT=0
  2064. val SCE_CLW_LABEL=1
  2065. val SCE_CLW_COMMENT=2
  2066. val SCE_CLW_STRING=3
  2067. val SCE_CLW_USER_IDENTIFIER=4
  2068. val SCE_CLW_INTEGER_CONSTANT=5
  2069. val SCE_CLW_REAL_CONSTANT=6
  2070. val SCE_CLW_PICTURE_STRING=7
  2071. val SCE_CLW_KEYWORD=8
  2072. val SCE_CLW_COMPILER_DIRECTIVE=9
  2073. val SCE_CLW_RUNTIME_EXPRESSIONS=10
  2074. val SCE_CLW_BUILTIN_PROCEDURES_FUNCTION=11
  2075. val SCE_CLW_STRUCTURE_DATA_TYPE=12
  2076. val SCE_CLW_ATTRIBUTE=13
  2077. val SCE_CLW_STANDARD_EQUATE=14
  2078. val SCE_CLW_ERROR=15
  2079. val SCE_CLW_DEPRECATED=16
  2080. # Lexical states for SCLEX_LOT
  2081. lex LOT=SCLEX_LOT SCE_LOT_
  2082. val SCE_LOT_DEFAULT=0
  2083. val SCE_LOT_HEADER=1
  2084. val SCE_LOT_BREAK=2
  2085. val SCE_LOT_SET=3
  2086. val SCE_LOT_PASS=4
  2087. val SCE_LOT_FAIL=5
  2088. val SCE_LOT_ABORT=6
  2089. # Lexical states for SCLEX_YAML
  2090. lex YAML=SCLEX_YAML SCE_YAML_
  2091. val SCE_YAML_DEFAULT=0
  2092. val SCE_YAML_COMMENT=1
  2093. val SCE_YAML_IDENTIFIER=2
  2094. val SCE_YAML_KEYWORD=3
  2095. val SCE_YAML_NUMBER=4
  2096. val SCE_YAML_REFERENCE=5
  2097. val SCE_YAML_DOCUMENT=6
  2098. val SCE_YAML_TEXT=7
  2099. val SCE_YAML_ERROR=8
  2100. # Lexical states for SCLEX_TEX
  2101. lex TeX=SCLEX_TEX SCE_TEX_
  2102. val SCE_TEX_DEFAULT=0
  2103. val SCE_TEX_SPECIAL=1
  2104. val SCE_TEX_GROUP=2
  2105. val SCE_TEX_SYMBOL=3
  2106. val SCE_TEX_COMMAND=4
  2107. val SCE_TEX_TEXT=5
  2108. lex Metapost=SCLEX_METAPOST SCE_METAPOST_
  2109. val SCE_METAPOST_DEFAULT=0
  2110. val SCE_METAPOST_SPECIAL=1
  2111. val SCE_METAPOST_GROUP=2
  2112. val SCE_METAPOST_SYMBOL=3
  2113. val SCE_METAPOST_COMMAND=4
  2114. val SCE_METAPOST_TEXT=5
  2115. val SCE_METAPOST_EXTRA=6
  2116. # Lexical states for SCLEX_ERLANG
  2117. lex Erlang=SCLEX_ERLANG SCE_ERLANG_
  2118. val SCE_ERLANG_DEFAULT=0
  2119. val SCE_ERLANG_COMMENT=1
  2120. val SCE_ERLANG_VARIABLE=2
  2121. val SCE_ERLANG_NUMBER=3
  2122. val SCE_ERLANG_KEYWORD=4
  2123. val SCE_ERLANG_STRING=5
  2124. val SCE_ERLANG_OPERATOR=6
  2125. val SCE_ERLANG_ATOM=7
  2126. val SCE_ERLANG_FUNCTION_NAME=8
  2127. val SCE_ERLANG_CHARACTER=9
  2128. val SCE_ERLANG_MACRO=10
  2129. val SCE_ERLANG_RECORD=11
  2130. val SCE_ERLANG_SEPARATOR=12
  2131. val SCE_ERLANG_NODE_NAME=13
  2132. val SCE_ERLANG_UNKNOWN=31
  2133. # Lexical states for SCLEX_OCTAVE are identical to MatLab
  2134. lex Octave=SCLEX_OCTAVE SCE_MATLAB_
  2135. # Lexical states for SCLEX_MSSQL
  2136. lex MSSQL=SCLEX_MSSQL SCE_MSSQL_
  2137. val SCE_MSSQL_DEFAULT=0
  2138. val SCE_MSSQL_COMMENT=1
  2139. val SCE_MSSQL_LINE_COMMENT=2
  2140. val SCE_MSSQL_NUMBER=3
  2141. val SCE_MSSQL_STRING=4
  2142. val SCE_MSSQL_OPERATOR=5
  2143. val SCE_MSSQL_IDENTIFIER=6
  2144. val SCE_MSSQL_VARIABLE=7
  2145. val SCE_MSSQL_COLUMN_NAME=8
  2146. val SCE_MSSQL_STATEMENT=9
  2147. val SCE_MSSQL_DATATYPE=10
  2148. val SCE_MSSQL_SYSTABLE=11
  2149. val SCE_MSSQL_GLOBAL_VARIABLE=12
  2150. val SCE_MSSQL_FUNCTION=13
  2151. val SCE_MSSQL_STORED_PROCEDURE=14
  2152. val SCE_MSSQL_DEFAULT_PREF_DATATYPE=15
  2153. val SCE_MSSQL_COLUMN_NAME_2=16
  2154. # Lexical states for SCLEX_VERILOG
  2155. lex Verilog=SCLEX_VERILOG SCE_V_
  2156. val SCE_V_DEFAULT=0
  2157. val SCE_V_COMMENT=1
  2158. val SCE_V_COMMENTLINE=2
  2159. val SCE_V_COMMENTLINEBANG=3
  2160. val SCE_V_NUMBER=4
  2161. val SCE_V_WORD=5
  2162. val SCE_V_STRING=6
  2163. val SCE_V_WORD2=7
  2164. val SCE_V_WORD3=8
  2165. val SCE_V_PREPROCESSOR=9
  2166. val SCE_V_OPERATOR=10
  2167. val SCE_V_IDENTIFIER=11
  2168. val SCE_V_STRINGEOL=12
  2169. val SCE_V_USER=19
  2170. # Lexical states for SCLEX_KIX
  2171. lex Kix=SCLEX_KIX SCE_KIX_
  2172. val SCE_KIX_DEFAULT=0
  2173. val SCE_KIX_COMMENT=1
  2174. val SCE_KIX_STRING1=2
  2175. val SCE_KIX_STRING2=3
  2176. val SCE_KIX_NUMBER=4
  2177. val SCE_KIX_VAR=5
  2178. val SCE_KIX_MACRO=6
  2179. val SCE_KIX_KEYWORD=7
  2180. val SCE_KIX_FUNCTIONS=8
  2181. val SCE_KIX_OPERATOR=9
  2182. val SCE_KIX_IDENTIFIER=31
  2183. # Lexical states for SCLEX_GUI4CLI
  2184. val SCE_GC_DEFAULT=0
  2185. val SCE_GC_COMMENTLINE=1
  2186. val SCE_GC_COMMENTBLOCK=2
  2187. val SCE_GC_GLOBAL=3
  2188. val SCE_GC_EVENT=4
  2189. val SCE_GC_ATTRIBUTE=5
  2190. val SCE_GC_CONTROL=6
  2191. val SCE_GC_COMMAND=7
  2192. val SCE_GC_STRING=8
  2193. val SCE_GC_OPERATOR=9
  2194. # Lexical states for SCLEX_SPECMAN
  2195. lex Specman=SCLEX_SPECMAN SCE_SN_
  2196. val SCE_SN_DEFAULT=0
  2197. val SCE_SN_CODE=1
  2198. val SCE_SN_COMMENTLINE=2
  2199. val SCE_SN_COMMENTLINEBANG=3
  2200. val SCE_SN_NUMBER=4
  2201. val SCE_SN_WORD=5
  2202. val SCE_SN_STRING=6
  2203. val SCE_SN_WORD2=7
  2204. val SCE_SN_WORD3=8
  2205. val SCE_SN_PREPROCESSOR=9
  2206. val SCE_SN_OPERATOR=10
  2207. val SCE_SN_IDENTIFIER=11
  2208. val SCE_SN_STRINGEOL=12
  2209. val SCE_SN_REGEXTAG=13
  2210. val SCE_SN_SIGNAL=14
  2211. val SCE_SN_USER=19
  2212. # Lexical states for SCLEX_AU3
  2213. lex Au3=SCLEX_AU3 SCE_AU3_
  2214. val SCE_AU3_DEFAULT=0
  2215. val SCE_AU3_COMMENT=1
  2216. val SCE_AU3_COMMENTBLOCK=2
  2217. val SCE_AU3_NUMBER=3
  2218. val SCE_AU3_FUNCTION=4
  2219. val SCE_AU3_KEYWORD=5
  2220. val SCE_AU3_MACRO=6
  2221. val SCE_AU3_STRING=7
  2222. val SCE_AU3_OPERATOR=8
  2223. val SCE_AU3_VARIABLE=9
  2224. val SCE_AU3_SENT=10
  2225. val SCE_AU3_PREPROCESSOR=11
  2226. val SCE_AU3_SPECIAL=12
  2227. val SCE_AU3_EXPAND=13
  2228. val SCE_AU3_COMOBJ=14
  2229. val SCE_AU3_UDF=15
  2230. # Lexical states for SCLEX_APDL
  2231. lex APDL=SCLEX_APDL SCE_APDL_
  2232. val SCE_APDL_DEFAULT=0
  2233. val SCE_APDL_COMMENT=1
  2234. val SCE_APDL_COMMENTBLOCK=2
  2235. val SCE_APDL_NUMBER=3
  2236. val SCE_APDL_STRING=4
  2237. val SCE_APDL_OPERATOR=5
  2238. val SCE_APDL_WORD=6
  2239. val SCE_APDL_PROCESSOR=7
  2240. val SCE_APDL_COMMAND=8
  2241. val SCE_APDL_SLASHCOMMAND=9
  2242. val SCE_APDL_STARCOMMAND=10
  2243. val SCE_APDL_ARGUMENT=11
  2244. val SCE_APDL_FUNCTION=12
  2245. # Lexical states for SCLEX_BASH
  2246. lex Bash=SCLEX_BASH SCE_SH_
  2247. val SCE_SH_DEFAULT=0
  2248. val SCE_SH_ERROR=1
  2249. val SCE_SH_COMMENTLINE=2
  2250. val SCE_SH_NUMBER=3
  2251. val SCE_SH_WORD=4
  2252. val SCE_SH_STRING=5
  2253. val SCE_SH_CHARACTER=6
  2254. val SCE_SH_OPERATOR=7
  2255. val SCE_SH_IDENTIFIER=8
  2256. val SCE_SH_SCALAR=9
  2257. val SCE_SH_PARAM=10
  2258. val SCE_SH_BACKTICKS=11
  2259. val SCE_SH_HERE_DELIM=12
  2260. val SCE_SH_HERE_Q=13
  2261. # Lexical states for SCLEX_ASN1
  2262. lex Asn1=SCLEX_ASN1 SCE_ASN1_
  2263. val SCE_ASN1_DEFAULT=0
  2264. val SCE_ASN1_COMMENT=1
  2265. val SCE_ASN1_IDENTIFIER=2
  2266. val SCE_ASN1_STRING=3
  2267. val SCE_ASN1_OID=4
  2268. val SCE_ASN1_SCALAR=5
  2269. val SCE_ASN1_KEYWORD=6
  2270. val SCE_ASN1_ATTRIBUTE=7
  2271. val SCE_ASN1_DESCRIPTOR=8
  2272. val SCE_ASN1_TYPE=9
  2273. val SCE_ASN1_OPERATOR=10
  2274. # Lexical states for SCLEX_VHDL
  2275. lex VHDL=SCLEX_VHDL SCE_VHDL_
  2276. val SCE_VHDL_DEFAULT=0
  2277. val SCE_VHDL_COMMENT=1
  2278. val SCE_VHDL_COMMENTLINEBANG=2
  2279. val SCE_VHDL_NUMBER=3
  2280. val SCE_VHDL_STRING=4
  2281. val SCE_VHDL_OPERATOR=5
  2282. val SCE_VHDL_IDENTIFIER=6
  2283. val SCE_VHDL_STRINGEOL=7
  2284. val SCE_VHDL_KEYWORD=8
  2285. val SCE_VHDL_STDOPERATOR=9
  2286. val SCE_VHDL_ATTRIBUTE=10
  2287. val SCE_VHDL_STDFUNCTION=11
  2288. val SCE_VHDL_STDPACKAGE=12
  2289. val SCE_VHDL_STDTYPE=13
  2290. val SCE_VHDL_USERWORD=14
  2291. # Lexical states for SCLEX_CAML
  2292. lex Caml=SCLEX_CAML SCE_CAML_
  2293. val SCE_CAML_DEFAULT=0
  2294. val SCE_CAML_IDENTIFIER=1
  2295. val SCE_CAML_TAGNAME=2
  2296. val SCE_CAML_KEYWORD=3
  2297. val SCE_CAML_KEYWORD2=4
  2298. val SCE_CAML_KEYWORD3=5
  2299. val SCE_CAML_LINENUM=6
  2300. val SCE_CAML_OPERATOR=7
  2301. val SCE_CAML_NUMBER=8
  2302. val SCE_CAML_CHAR=9
  2303. val SCE_CAML_STRING=11
  2304. val SCE_CAML_COMMENT=12
  2305. val SCE_CAML_COMMENT1=13
  2306. val SCE_CAML_COMMENT2=14
  2307. val SCE_CAML_COMMENT3=15
  2308. # Lexical states for SCLEX_HASKELL
  2309. lex Haskell=SCLEX_HASKELL SCE_HA_
  2310. val SCE_HA_DEFAULT=0
  2311. val SCE_HA_IDENTIFIER=1
  2312. val SCE_HA_KEYWORD=2
  2313. val SCE_HA_NUMBER=3
  2314. val SCE_HA_STRING=4
  2315. val SCE_HA_CHARACTER=5
  2316. val SCE_HA_CLASS=6
  2317. val SCE_HA_MODULE=7
  2318. val SCE_HA_CAPITAL=8
  2319. val SCE_HA_DATA=9
  2320. val SCE_HA_IMPORT=10
  2321. val SCE_HA_OPERATOR=11
  2322. val SCE_HA_INSTANCE=12
  2323. val SCE_HA_COMMENTLINE=13
  2324. val SCE_HA_COMMENTBLOCK=14
  2325. val SCE_HA_COMMENTBLOCK2=15
  2326. val SCE_HA_COMMENTBLOCK3=16
  2327. # Lexical states of SCLEX_TADS3
  2328. lex TADS3=SCLEX_TADS3 SCE_T3_
  2329. val SCE_T3_DEFAULT=0
  2330. val SCE_T3_X_DEFAULT=1
  2331. val SCE_T3_PREPROCESSOR=2
  2332. val SCE_T3_BLOCK_COMMENT=3
  2333. val SCE_T3_LINE_COMMENT=4
  2334. val SCE_T3_OPERATOR=5
  2335. val SCE_T3_KEYWORD=6
  2336. val SCE_T3_NUMBER=7
  2337. val SCE_T3_IDENTIFIER=8
  2338. val SCE_T3_S_STRING=9
  2339. val SCE_T3_D_STRING=10
  2340. val SCE_T3_X_STRING=11
  2341. val SCE_T3_LIB_DIRECTIVE=12
  2342. val SCE_T3_MSG_PARAM=13
  2343. val SCE_T3_HTML_TAG=14
  2344. val SCE_T3_HTML_DEFAULT=15
  2345. val SCE_T3_HTML_STRING=16
  2346. val SCE_T3_USER1=17
  2347. val SCE_T3_USER2=18
  2348. val SCE_T3_USER3=19
  2349. # Lexical states for SCLEX_REBOL
  2350. lex Rebol=SCLEX_REBOL SCE_REBOL_
  2351. val SCE_REBOL_DEFAULT=0
  2352. val SCE_REBOL_COMMENTLINE=1
  2353. val SCE_REBOL_COMMENTBLOCK=2
  2354. val SCE_REBOL_PREFACE=3
  2355. val SCE_REBOL_OPERATOR=4
  2356. val SCE_REBOL_CHARACTER=5
  2357. val SCE_REBOL_QUOTEDSTRING=6
  2358. val SCE_REBOL_BRACEDSTRING=7
  2359. val SCE_REBOL_NUMBER=8
  2360. val SCE_REBOL_PAIR=9
  2361. val SCE_REBOL_TUPLE=10
  2362. val SCE_REBOL_BINARY=11
  2363. val SCE_REBOL_MONEY=12
  2364. val SCE_REBOL_ISSUE=13
  2365. val SCE_REBOL_TAG=14
  2366. val SCE_REBOL_FILE=15
  2367. val SCE_REBOL_EMAIL=16
  2368. val SCE_REBOL_URL=17
  2369. val SCE_REBOL_DATE=18
  2370. val SCE_REBOL_TIME=19
  2371. val SCE_REBOL_IDENTIFIER=20
  2372. val SCE_REBOL_WORD=21
  2373. val SCE_REBOL_WORD2=22
  2374. val SCE_REBOL_WORD3=23
  2375. val SCE_REBOL_WORD4=24
  2376. val SCE_REBOL_WORD5=25
  2377. val SCE_REBOL_WORD6=26
  2378. val SCE_REBOL_WORD7=27
  2379. val SCE_REBOL_WORD8=28
  2380. # Lexical states for SCLEX_SQL
  2381. lex SQL=SCLEX_SQL SCE_SQL_
  2382. val SCE_SQL_DEFAULT=0
  2383. val SCE_SQL_COMMENT=1
  2384. val SCE_SQL_COMMENTLINE=2
  2385. val SCE_SQL_COMMENTDOC=3
  2386. val SCE_SQL_NUMBER=4
  2387. val SCE_SQL_WORD=5
  2388. val SCE_SQL_STRING=6
  2389. val SCE_SQL_CHARACTER=7
  2390. val SCE_SQL_SQLPLUS=8
  2391. val SCE_SQL_SQLPLUS_PROMPT=9
  2392. val SCE_SQL_OPERATOR=10
  2393. val SCE_SQL_IDENTIFIER=11
  2394. val SCE_SQL_SQLPLUS_COMMENT=13
  2395. val SCE_SQL_COMMENTLINEDOC=15
  2396. val SCE_SQL_WORD2=16
  2397. val SCE_SQL_COMMENTDOCKEYWORD=17
  2398. val SCE_SQL_COMMENTDOCKEYWORDERROR=18
  2399. val SCE_SQL_USER1=19
  2400. val SCE_SQL_USER2=20
  2401. val SCE_SQL_USER3=21
  2402. val SCE_SQL_USER4=22
  2403. val SCE_SQL_QUOTEDIDENTIFIER=23
  2404. # Lexical states for SCLEX_SMALLTALK
  2405. lex Smalltalk=SCLEX_SMALLTALK SCE_ST_
  2406. val SCE_ST_DEFAULT=0
  2407. val SCE_ST_STRING=1
  2408. val SCE_ST_NUMBER=2
  2409. val SCE_ST_COMMENT=3
  2410. val SCE_ST_SYMBOL=4
  2411. val SCE_ST_BINARY=5
  2412. val SCE_ST_BOOL=6
  2413. val SCE_ST_SELF=7
  2414. val SCE_ST_SUPER=8
  2415. val SCE_ST_NIL=9
  2416. val SCE_ST_GLOBAL=10
  2417. val SCE_ST_RETURN=11
  2418. val SCE_ST_SPECIAL=12
  2419. val SCE_ST_KWSEND=13
  2420. val SCE_ST_ASSIGN=14
  2421. val SCE_ST_CHARACTER=15
  2422. val SCE_ST_SPEC_SEL=16
  2423. # Lexical states for SCLEX_FLAGSHIP (clipper)
  2424. lex FlagShip=SCLEX_FLAGSHIP SCE_B_
  2425. val SCE_FS_DEFAULT=0
  2426. val SCE_FS_COMMENT=1
  2427. val SCE_FS_COMMENTLINE=2
  2428. val SCE_FS_COMMENTDOC=3
  2429. val SCE_FS_COMMENTLINEDOC=4
  2430. val SCE_FS_COMMENTDOCKEYWORD=5
  2431. val SCE_FS_COMMENTDOCKEYWORDERROR=6
  2432. val SCE_FS_KEYWORD=7
  2433. val SCE_FS_KEYWORD2=8
  2434. val SCE_FS_KEYWORD3=9
  2435. val SCE_FS_KEYWORD4=10
  2436. val SCE_FS_NUMBER=11
  2437. val SCE_FS_STRING=12
  2438. val SCE_FS_PREPROCESSOR=13
  2439. val SCE_FS_OPERATOR=14
  2440. val SCE_FS_IDENTIFIER=15
  2441. val SCE_FS_DATE=16
  2442. val SCE_FS_STRINGEOL=17
  2443. val SCE_FS_CONSTANT=18
  2444. val SCE_FS_ASM=19
  2445. val SCE_FS_LABEL=20
  2446. val SCE_FS_ERROR=21
  2447. val SCE_FS_HEXNUMBER=22
  2448. val SCE_FS_BINNUMBER=23
  2449. # Lexical states for SCLEX_CSOUND
  2450. lex Csound=SCLEX_CSOUND SCE_CSOUND_
  2451. val SCE_CSOUND_DEFAULT=0
  2452. val SCE_CSOUND_COMMENT=1
  2453. val SCE_CSOUND_NUMBER=2
  2454. val SCE_CSOUND_OPERATOR=3
  2455. val SCE_CSOUND_INSTR=4
  2456. val SCE_CSOUND_IDENTIFIER=5
  2457. val SCE_CSOUND_OPCODE=6
  2458. val SCE_CSOUND_HEADERSTMT=7
  2459. val SCE_CSOUND_USERKEYWORD=8
  2460. val SCE_CSOUND_COMMENTBLOCK=9
  2461. val SCE_CSOUND_PARAM=10
  2462. val SCE_CSOUND_ARATE_VAR=11
  2463. val SCE_CSOUND_KRATE_VAR=12
  2464. val SCE_CSOUND_IRATE_VAR=13
  2465. val SCE_CSOUND_GLOBAL_VAR=14
  2466. val SCE_CSOUND_STRINGEOL=15
  2467. # Lexical states for SCLEX_INNOSETUP
  2468. lex Inno=SCLEX_INNOSETUP SCE_INNO_
  2469. val SCE_INNO_DEFAULT=0
  2470. val SCE_INNO_COMMENT=1
  2471. val SCE_INNO_KEYWORD=2
  2472. val SCE_INNO_PARAMETER=3
  2473. val SCE_INNO_SECTION=4
  2474. val SCE_INNO_PREPROC=5
  2475. val SCE_INNO_PREPROC_INLINE=6
  2476. val SCE_INNO_COMMENT_PASCAL=7
  2477. val SCE_INNO_KEYWORD_PASCAL=8
  2478. val SCE_INNO_KEYWORD_USER=9
  2479. val SCE_INNO_STRING_DOUBLE=10
  2480. val SCE_INNO_STRING_SINGLE=11
  2481. val SCE_INNO_IDENTIFIER=12
  2482. # Lexical states for SCLEX_OPAL
  2483. lex Opal=SCLEX_OPAL SCE_OPAL_
  2484. val SCE_OPAL_SPACE=0
  2485. val SCE_OPAL_COMMENT_BLOCK=1
  2486. val SCE_OPAL_COMMENT_LINE=2
  2487. val SCE_OPAL_INTEGER=3
  2488. val SCE_OPAL_KEYWORD=4
  2489. val SCE_OPAL_SORT=5
  2490. val SCE_OPAL_STRING=6
  2491. val SCE_OPAL_PAR=7
  2492. val SCE_OPAL_BOOL_CONST=8
  2493. val SCE_OPAL_DEFAULT=32
  2494. # Lexical states for SCLEX_SPICE
  2495. lex Spice=SCLEX_SPICE SCE_SPICE_
  2496. val SCE_SPICE_DEFAULT=0
  2497. val SCE_SPICE_IDENTIFIER=1
  2498. val SCE_SPICE_KEYWORD=2
  2499. val SCE_SPICE_KEYWORD2=3
  2500. val SCE_SPICE_KEYWORD3=4
  2501. val SCE_SPICE_NUMBER=5
  2502. val SCE_SPICE_DELIMITER=6
  2503. val SCE_SPICE_VALUE=7
  2504. val SCE_SPICE_COMMENTLINE=8
  2505. # Events
  2506. evt void StyleNeeded=2000(int position)
  2507. evt void CharAdded=2001(int ch)
  2508. evt void SavePointReached=2002(void)
  2509. evt void SavePointLeft=2003(void)
  2510. evt void ModifyAttemptRO=2004(void)
  2511. # GTK+ Specific to work around focus and accelerator problems:
  2512. evt void Key=2005(int ch, int modifiers)
  2513. evt void DoubleClick=2006(void)
  2514. evt void UpdateUI=2007(void)
  2515. evt void Modified=2008(int position, int modificationType, string text, int length, int linesAdded, int line, int foldLevelNow, int foldLevelPrev)
  2516. evt void MacroRecord=2009(int message, int wParam, int lParam)
  2517. evt void MarginClick=2010(int modifiers, int position, int margin)
  2518. evt void NeedShown=2011(int position, int length)
  2519. evt void Painted=2013(void)
  2520. evt void UserListSelection=2014(int listType, string text)
  2521. evt void URIDropped=2015(string text)
  2522. evt void DwellStart=2016(int position)
  2523. evt void DwellEnd=2017(int position)
  2524. evt void Zoom=2018(void)
  2525. evt void HotSpotClick=2019(int modifiers, int position)
  2526. evt void HotSpotDoubleClick=2020(int modifiers, int position)
  2527. evt void CallTipClick=2021(int position)
  2528. evt void AutoCSelection=2022(string text)
  2529. cat Deprecated
  2530. # CARET_POLICY changed in 1.47
  2531. fun void SetCaretPolicy=2369(int caretPolicy, int caretSlop)
  2532. val CARET_CENTER=0x02
  2533. val CARET_XEVEN=0x08
  2534. val CARET_XJUMPS=0x10
  2535. # The old name for SCN_UPDATEUI
  2536. val SCN_CHECKBRACE=2007
  2537. evt void PosChanged=2012(int position)
  2538. # SCLEX_HTML should be used in preference to these.
  2539. val SCLEX_ASP=29
  2540. val SCLEX_PHP=30