This repository was archived by the owner on Jan 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathScintilla_iface.cs
More file actions
3287 lines (2156 loc) · 103 KB
/
Scintilla_iface.cs
File metadata and controls
3287 lines (2156 loc) · 103 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// NPP plugin platform for .Net v0.94.00 by Kasper B. Graversen etc.
//
// This file should stay in sync with the CPP project file
// "notepad-plus-plus/scintilla/include/Scintilla.iface"
// found at
// https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/scintilla/include/Scintilla.iface
using System;
using System.Runtime.InteropServices;
namespace Kbg.NppPluginNET.PluginInfrastructure
{
/// <summary>
/// Compatible with Windows NMHDR.
/// hwndFrom is really an environment specific window handle or pointer
/// but most clients of Scintilla.h do not have this type visible.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct ScNotificationHeader
{
/// <summary>
/// environment specific window handle/pointer
/// </summary>
public IntPtr hwndFrom;
/// <summary>
/// CtrlID of the window issuing the notification
/// </summary>
public IntPtr IdFrom;
/// <summary>
/// The SCN_* notification Code
/// </summary>
public uint Code;
}
[StructLayout(LayoutKind.Sequential)]
public struct ScNotification
{
public ScNotificationHeader Header;
private IntPtr position; /* SCN_STYLENEEDED, SCN_DOUBLECLICK, SCN_MODIFIED, SCN_MARGINCLICK, SCN_NEEDSHOWN, SCN_DWELLSTART, SCN_DWELLEND, SCN_CALLTIPCLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION */
public int character; /* SCN_CHARADDED, SCN_KEY, SCN_AUTOCCOMPLETE, SCN_AUTOCSELECTION, SCN_USERLISTSELECTION */
public int Mmodifiers; /* SCN_KEY, SCN_DOUBLECLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE */
public int ModificationType; /* SCN_MODIFIED - modification types are name "SC_MOD_*" */
public IntPtr TextPointer; /* SCN_MODIFIED, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION, SCN_URIDROPPED */
public IntPtr Length; /* SCN_MODIFIED */
public IntPtr LinesAdded; /* SCN_MODIFIED */
public int Message; /* SCN_MACRORECORD */
public IntPtr wParam; /* SCN_MACRORECORD */
public IntPtr lParam; /* SCN_MACRORECORD */
/// <summary>
/// 0-based index
/// </summary>
public IntPtr LineNumber; /* SCN_MODIFIED */
public int FoldLevelNow; /* SCN_MODIFIED */
public int FoldLevelPrev; /* SCN_MODIFIED */
public int Margin; /* SCN_MARGINCLICK */
public int ListType; /* SCN_USERLISTSELECTION */
public int X; /* SCN_DWELLSTART, SCN_DWELLEND */
public int Y; /* SCN_DWELLSTART, SCN_DWELLEND */
public int Token; /* SCN_MODIFIED with SC_MOD_CONTAINER */
public int AnnotationLinesAdded; /* SC_MOD_CHANGEANNOTATION */
public int Updated; /* SCN_UPDATEUI */
public int ListCompletionMethod; /* SCN_AUTOCSELECTION, SCN_AUTOCCOMPLETED, SCN_USERLISTSELECTION */
public int CharacterSource; /* SCN_CHARADDED */
/// <summary>
/// SCN_STYLENEEDED, SCN_DOUBLECLICK, SCN_MODIFIED, SCN_MARGINCLICK, SCN_NEEDSHOWN, SCN_DWELLSTART, SCN_DWELLEND, SCN_CALLTIPCLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION
/// </summary>
public Position Position { get { return new Position(position); } }
/// <summary>
/// Character of the notification - eg keydown
/// SCN_CHARADDED, SCN_KEY, SCN_AUTOCCOMPLETE, SCN_AUTOCSELECTION, SCN_USERLISTSELECTION
/// </summary>
public char Character { get { return (char)character; } }
}
[Flags]
public enum SciMsg : uint
{
/* ++Autogenerated -- start of section automatically generated from Scintilla.iface */
INVALID_POSITION = 0xFFFFFFFF,
SCI_START = 2000,
SCI_OPTIONAL_START = 3000,
SCI_LEXER_START = 4000,
/// Add text to the document at current position.
SCI_ADDTEXT = 2001,
/// Add array of cells to document.
SCI_ADDSTYLEDTEXT = 2002,
/// Insert string at a position.
SCI_INSERTTEXT = 2003,
/// Change the text that is being inserted in response to SC_MOD_INSERTCHECK
SCI_CHANGEINSERTION = 2672,
/// Delete all text in the document.
SCI_CLEARALL = 2004,
/// Delete a range of text in the document.
SCI_DELETERANGE = 2645,
/// Set all style bytes to 0, remove all folding information.
SCI_CLEARDOCUMENTSTYLE = 2005,
/// Returns the number of bytes in the document.
SCI_GETLENGTH = 2006,
/// Returns the character byte at the position.
SCI_GETCHARAT = 2007,
/// Returns the position of the caret.
SCI_GETCURRENTPOS = 2008,
/// Returns the position of the opposite end of the selection to the caret.
SCI_GETANCHOR = 2009,
/// Returns the style byte at the position.
SCI_GETSTYLEAT = 2010,
/// Redoes the next action on the undo history.
SCI_REDO = 2011,
/// Choose between collecting actions into the undo
/// history and discarding them.
SCI_SETUNDOCOLLECTION = 2012,
/// Select all the text in the document.
SCI_SELECTALL = 2013,
/// Remember the current position in the undo history as the position
/// at which the document was saved.
SCI_SETSAVEPOINT = 2014,
/// Retrieve a buffer of cells.
/// Returns the number of bytes in the buffer not including terminating NULs.
SCI_GETSTYLEDTEXT = 2015,
/// Are there any redoable actions in the undo history?
SCI_CANREDO = 2016,
/// Retrieve the line number at which a particular marker is located.
SCI_MARKERLINEFROMHANDLE = 2017,
/// Delete a marker.
SCI_MARKERDELETEHANDLE = 2018,
/// Is undo history being collected?
SCI_GETUNDOCOLLECTION = 2019,
SCWS_INVISIBLE = 0,
SCWS_VISIBLEALWAYS = 1,
SCWS_VISIBLEAFTERINDENT = 2,
SCWS_VISIBLEONLYININDENT = 3,
/// Are white space characters currently visible?
/// Returns one of SCWS_* constants.
SCI_GETVIEWWS = 2020,
/// Make white space characters invisible, always visible or visible outside indentation.
SCI_SETVIEWWS = 2021,
SCTD_LONGARROW = 0,
SCTD_STRIKEOUT = 1,
/// Retrieve the current tab draw mode.
/// Returns one of SCTD_* constants.
SCI_GETTABDRAWMODE = 2698,
/// Set how tabs are drawn when visible.
SCI_SETTABDRAWMODE = 2699,
/// Find the position from a point within the window.
SCI_POSITIONFROMPOINT = 2022,
/// Find the position from a point within the window but return
/// INVALID_POSITION if not close to text.
SCI_POSITIONFROMPOINTCLOSE = 2023,
/// Set caret to start of a line and ensure it is visible.
SCI_GOTOLINE = 2024,
/// Set caret to a position and ensure it is visible.
SCI_GOTOPOS = 2025,
/// Set the selection anchor to a position. The anchor is the opposite
/// end of the selection from the caret.
SCI_SETANCHOR = 2026,
/// Retrieve the text of the line containing the caret.
/// Returns the index of the caret on the line.
/// Result is NUL-terminated.
SCI_GETCURLINE = 2027,
/// Retrieve the position of the last correctly styled character.
SCI_GETENDSTYLED = 2028,
SC_EOL_CRLF = 0,
SC_EOL_CR = 1,
SC_EOL_LF = 2,
/// Convert all line endings in the document to one mode.
SCI_CONVERTEOLS = 2029,
/// Retrieve the current end of line mode - one of CRLF, CR, or LF.
SCI_GETEOLMODE = 2030,
/// Set the current end of line mode.
SCI_SETEOLMODE = 2031,
/// Set the current styling position to start.
/// The unused parameter is no longer used and should be set to 0.
SCI_STARTSTYLING = 2032,
/// Change style from current styling position for length characters to a style
/// and move the current styling position to after this newly styled segment.
SCI_SETSTYLING = 2033,
/// Is drawing done first into a buffer or direct to the screen?
SCI_GETBUFFEREDDRAW = 2034,
/// If drawing is buffered then each line of text is drawn into a bitmap buffer
/// before drawing it to the screen to avoid flicker.
SCI_SETBUFFEREDDRAW = 2035,
/// Change the visible size of a tab to be a multiple of the width of a space character.
SCI_SETTABWIDTH = 2036,
/// Retrieve the visible size of a tab.
SCI_GETTABWIDTH = 2121,
/// Clear explicit tabstops on a line.
SCI_CLEARTABSTOPS = 2675,
/// Add an explicit tab stop for a line.
SCI_ADDTABSTOP = 2676,
/// Find the next explicit tab stop position on a line after a position.
SCI_GETNEXTTABSTOP = 2677,
SC_CP_UTF8 = 65001,
/// Set the code page used to interpret the bytes of the document as characters.
/// The SC_CP_UTF8 value can be used to enter Unicode mode.
SCI_SETCODEPAGE = 2037,
SC_IME_WINDOWED = 0,
SC_IME_INLINE = 1,
/// Is the IME displayed in a window or inline?
SCI_GETIMEINTERACTION = 2678,
/// Choose to display the the IME in a winow or inline.
SCI_SETIMEINTERACTION = 2679,
MARKER_MAX = 31,
SC_MARK_CIRCLE = 0,
SC_MARK_ROUNDRECT = 1,
SC_MARK_ARROW = 2,
SC_MARK_SMALLRECT = 3,
SC_MARK_SHORTARROW = 4,
SC_MARK_EMPTY = 5,
SC_MARK_ARROWDOWN = 6,
SC_MARK_MINUS = 7,
SC_MARK_PLUS = 8,
SC_MARK_VLINE = 9,
SC_MARK_LCORNER = 10,
SC_MARK_TCORNER = 11,
SC_MARK_BOXPLUS = 12,
SC_MARK_BOXPLUSCONNECTED = 13,
SC_MARK_BOXMINUS = 14,
SC_MARK_BOXMINUSCONNECTED = 15,
SC_MARK_LCORNERCURVE = 16,
SC_MARK_TCORNERCURVE = 17,
SC_MARK_CIRCLEPLUS = 18,
SC_MARK_CIRCLEPLUSCONNECTED = 19,
SC_MARK_CIRCLEMINUS = 20,
SC_MARK_CIRCLEMINUSCONNECTED = 21,
SC_MARK_BACKGROUND = 22,
SC_MARK_DOTDOTDOT = 23,
SC_MARK_ARROWS = 24,
SC_MARK_PIXMAP = 25,
SC_MARK_FULLRECT = 26,
SC_MARK_LEFTRECT = 27,
SC_MARK_AVAILABLE = 28,
SC_MARK_UNDERLINE = 29,
SC_MARK_RGBAIMAGE = 30,
SC_MARK_BOOKMARK = 31,
SC_MARK_VERTICALBOOKMARK = 32,
SC_MARK_CHARACTER = 10000,
SC_MARKNUM_FOLDEREND = 25,
SC_MARKNUM_FOLDEROPENMID = 26,
SC_MARKNUM_FOLDERMIDTAIL = 27,
SC_MARKNUM_FOLDERTAIL = 28,
SC_MARKNUM_FOLDERSUB = 29,
SC_MARKNUM_FOLDER = 30,
SC_MARKNUM_FOLDEROPEN = 31,
SC_MASK_FOLDERS = 0xFE000000,
/// Set the symbol used for a particular marker number.
SCI_MARKERDEFINE = 2040,
/// Set the foreground colour used for a particular marker number.
SCI_MARKERSETFORE = 2041,
/// Set the background colour used for a particular marker number.
SCI_MARKERSETBACK = 2042,
/// Set the background colour used for a particular marker number when its folding block is selected.
SCI_MARKERSETBACKSELECTED = 2292,
/// Enable/disable highlight for current folding bloc (smallest one that contains the caret)
SCI_MARKERENABLEHIGHLIGHT = 2293,
/// Add a marker to a line, returning an ID which can be used to find or delete the marker.
SCI_MARKERADD = 2043,
/// Delete a marker from a line.
SCI_MARKERDELETE = 2044,
/// Delete all markers with a particular number from all lines.
SCI_MARKERDELETEALL = 2045,
/// Get a bit mask of all the markers set on a line.
SCI_MARKERGET = 2046,
/// Find the next line at or after lineStart that includes a marker in mask.
/// Return -1 when no more lines.
SCI_MARKERNEXT = 2047,
/// Find the previous line before lineStart that includes a marker in mask.
SCI_MARKERPREVIOUS = 2048,
/// Define a marker from a pixmap.
SCI_MARKERDEFINEPIXMAP = 2049,
/// Add a set of markers to a line.
SCI_MARKERADDSET = 2466,
/// Set the alpha used for a marker that is drawn in the text area, not the margin.
SCI_MARKERSETALPHA = 2476,
SC_MAX_MARGIN = 4,
SC_MARGIN_SYMBOL = 0,
SC_MARGIN_NUMBER = 1,
SC_MARGIN_BACK = 2,
SC_MARGIN_FORE = 3,
SC_MARGIN_TEXT = 4,
SC_MARGIN_RTEXT = 5,
SC_MARGIN_COLOUR = 6,
/// Set a margin to be either numeric or symbolic.
SCI_SETMARGINTYPEN = 2240,
/// Retrieve the type of a margin.
SCI_GETMARGINTYPEN = 2241,
/// Set the width of a margin to a width expressed in pixels.
SCI_SETMARGINWIDTHN = 2242,
/// Retrieve the width of a margin in pixels.
SCI_GETMARGINWIDTHN = 2243,
/// Set a mask that determines which markers are displayed in a margin.
SCI_SETMARGINMASKN = 2244,
/// Retrieve the marker mask of a margin.
SCI_GETMARGINMASKN = 2245,
/// Make a margin sensitive or insensitive to mouse clicks.
SCI_SETMARGINSENSITIVEN = 2246,
/// Retrieve the mouse click sensitivity of a margin.
SCI_GETMARGINSENSITIVEN = 2247,
/// Set the cursor shown when the mouse is inside a margin.
SCI_SETMARGINCURSORN = 2248,
/// Retrieve the cursor shown in a margin.
SCI_GETMARGINCURSORN = 2249,
/// Set the background colour of a margin. Only visible for SC_MARGIN_COLOUR.
SCI_SETMARGINBACKN = 2250,
/// Retrieve the background colour of a margin
SCI_GETMARGINBACKN = 2251,
/// Allocate a non-standard number of margins.
SCI_SETMARGINS = 2252,
/// How many margins are there?.
SCI_GETMARGINS = 2253,
STYLE_DEFAULT = 32,
STYLE_LINENUMBER = 33,
STYLE_BRACELIGHT = 34,
STYLE_BRACEBAD = 35,
STYLE_CONTROLCHAR = 36,
STYLE_INDENTGUIDE = 37,
STYLE_CALLTIP = 38,
STYLE_FOLDDISPLAYTEXT = 39,
STYLE_LASTPREDEFINED = 39,
STYLE_MAX = 255,
SC_CHARSET_ANSI = 0,
SC_CHARSET_DEFAULT = 1,
SC_CHARSET_BALTIC = 186,
SC_CHARSET_CHINESEBIG5 = 136,
SC_CHARSET_EASTEUROPE = 238,
SC_CHARSET_GB2312 = 134,
SC_CHARSET_GREEK = 161,
SC_CHARSET_HANGUL = 129,
SC_CHARSET_MAC = 77,
SC_CHARSET_OEM = 255,
SC_CHARSET_RUSSIAN = 204,
SC_CHARSET_OEM866 = 866,
SC_CHARSET_CYRILLIC = 1251,
SC_CHARSET_SHIFTJIS = 128,
SC_CHARSET_SYMBOL = 2,
SC_CHARSET_TURKISH = 162,
SC_CHARSET_JOHAB = 130,
SC_CHARSET_HEBREW = 177,
SC_CHARSET_ARABIC = 178,
SC_CHARSET_VIETNAMESE = 163,
SC_CHARSET_THAI = 222,
SC_CHARSET_8859_15 = 1000,
/// Clear all the styles and make equivalent to the global default style.
SCI_STYLECLEARALL = 2050,
/// Set the foreground colour of a style.
SCI_STYLESETFORE = 2051,
/// Set the background colour of a style.
SCI_STYLESETBACK = 2052,
/// Set a style to be bold or not.
SCI_STYLESETBOLD = 2053,
/// Set a style to be italic or not.
SCI_STYLESETITALIC = 2054,
/// Set the size of characters of a style.
SCI_STYLESETSIZE = 2055,
/// Set the font of a style.
SCI_STYLESETFONT = 2056,
/// Set a style to have its end of line filled or not.
SCI_STYLESETEOLFILLED = 2057,
/// Reset the default style to its state at startup
SCI_STYLERESETDEFAULT = 2058,
/// Set a style to be underlined or not.
SCI_STYLESETUNDERLINE = 2059,
SC_CASE_MIXED = 0,
SC_CASE_UPPER = 1,
SC_CASE_LOWER = 2,
SC_CASE_CAMEL = 3,
/// Get the foreground colour of a style.
SCI_STYLEGETFORE = 2481,
/// Get the background colour of a style.
SCI_STYLEGETBACK = 2482,
/// Get is a style bold or not.
SCI_STYLEGETBOLD = 2483,
/// Get is a style italic or not.
SCI_STYLEGETITALIC = 2484,
/// Get the size of characters of a style.
SCI_STYLEGETSIZE = 2485,
/// Get the font of a style.
/// Returns the length of the fontName
/// Result is NUL-terminated.
SCI_STYLEGETFONT = 2486,
/// Get is a style to have its end of line filled or not.
SCI_STYLEGETEOLFILLED = 2487,
/// Get is a style underlined or not.
SCI_STYLEGETUNDERLINE = 2488,
/// Get is a style mixed case, or to force upper or lower case.
SCI_STYLEGETCASE = 2489,
/// Get the character get of the font in a style.
SCI_STYLEGETCHARACTERSET = 2490,
/// Get is a style visible or not.
SCI_STYLEGETVISIBLE = 2491,
/// Get is a style changeable or not (read only).
/// Experimental feature, currently buggy.
SCI_STYLEGETCHANGEABLE = 2492,
/// Get is a style a hotspot or not.
SCI_STYLEGETHOTSPOT = 2493,
/// Set a style to be mixed case, or to force upper or lower case.
SCI_STYLESETCASE = 2060,
SC_FONT_SIZE_MULTIPLIER = 100,
/// Set the size of characters of a style. Size is in points multiplied by 100.
SCI_STYLESETSIZEFRACTIONAL = 2061,
/// Get the size of characters of a style in points multiplied by 100
SCI_STYLEGETSIZEFRACTIONAL = 2062,
SC_WEIGHT_NORMAL = 400,
SC_WEIGHT_SEMIBOLD = 600,
SC_WEIGHT_BOLD = 700,
/// Set the weight of characters of a style.
SCI_STYLESETWEIGHT = 2063,
/// Get the weight of characters of a style.
SCI_STYLEGETWEIGHT = 2064,
/// Set the character set of the font in a style.
SCI_STYLESETCHARACTERSET = 2066,
/// Set a style to be a hotspot or not.
SCI_STYLESETHOTSPOT = 2409,
/// Set the foreground colour of the main and additional selections and whether to use this setting.
SCI_SETSELFORE = 2067,
/// Set the background colour of the main and additional selections and whether to use this setting.
SCI_SETSELBACK = 2068,
/// Get the alpha of the selection.
SCI_GETSELALPHA = 2477,
/// Set the alpha of the selection.
SCI_SETSELALPHA = 2478,
/// Is the selection end of line filled?
SCI_GETSELEOLFILLED = 2479,
/// Set the selection to have its end of line filled or not.
SCI_SETSELEOLFILLED = 2480,
/// Set the foreground colour of the caret.
SCI_SETCARETFORE = 2069,
/// When key+modifier combination keyDefinition is pressed perform sciCommand.
SCI_ASSIGNCMDKEY = 2070,
/// When key+modifier combination keyDefinition is pressed do nothing.
SCI_CLEARCMDKEY = 2071,
/// Drop all key mappings.
SCI_CLEARALLCMDKEYS = 2072,
/// Set the styles for a segment of the document.
SCI_SETSTYLINGEX = 2073,
/// Set a style to be visible or not.
SCI_STYLESETVISIBLE = 2074,
/// Get the time in milliseconds that the caret is on and off.
SCI_GETCARETPERIOD = 2075,
/// Get the time in milliseconds that the caret is on and off. 0 = steady on.
SCI_SETCARETPERIOD = 2076,
/// Set the set of characters making up words for when moving or selecting by word.
/// First sets defaults like SetCharsDefault.
SCI_SETWORDCHARS = 2077,
/// Get the set of characters making up words for when moving or selecting by word.
/// Returns the number of characters
SCI_GETWORDCHARS = 2646,
/// Set the number of characters to have directly indexed categories
SCI_SETCHARACTERCATEGORYOPTIMIZATION = 2720,
/// Get the number of characters to have directly indexed categories
SCI_GETCHARACTERCATEGORYOPTIMIZATION = 2721,
/// Start a sequence of actions that is undone and redone as a unit.
/// May be nested.
SCI_BEGINUNDOACTION = 2078,
/// End a sequence of actions that is undone and redone as a unit.
SCI_ENDUNDOACTION = 2079,
INDIC_PLAIN = 0,
INDIC_SQUIGGLE = 1,
INDIC_TT = 2,
INDIC_DIAGONAL = 3,
INDIC_STRIKE = 4,
INDIC_HIDDEN = 5,
INDIC_BOX = 6,
INDIC_ROUNDBOX = 7,
INDIC_STRAIGHTBOX = 8,
INDIC_DASH = 9,
INDIC_DOTS = 10,
INDIC_SQUIGGLELOW = 11,
INDIC_DOTBOX = 12,
INDIC_SQUIGGLEPIXMAP = 13,
INDIC_COMPOSITIONTHICK = 14,
INDIC_COMPOSITIONTHIN = 15,
INDIC_FULLBOX = 16,
INDIC_TEXTFORE = 17,
INDIC_POINT = 18,
INDIC_POINTCHARACTER = 19,
INDIC_GRADIENT = 20,
INDIC_GRADIENTCENTRE = 21,
INDIC_CONTAINER = 8,
INDIC_IME = 32,
INDIC_IME_MAX = 35,
INDIC_MAX = 35,
INDICATOR_CONTAINER = 8,
INDICATOR_IME = 32,
INDICATOR_IME_MAX = 35,
INDICATOR_MAX = 35,
/// Set an indicator to plain, squiggle or TT.
SCI_INDICSETSTYLE = 2080,
/// Retrieve the style of an indicator.
SCI_INDICGETSTYLE = 2081,
/// Set the foreground colour of an indicator.
SCI_INDICSETFORE = 2082,
/// Retrieve the foreground colour of an indicator.
SCI_INDICGETFORE = 2083,
/// Set an indicator to draw under text or over(default).
SCI_INDICSETUNDER = 2510,
/// Retrieve whether indicator drawn under or over text.
SCI_INDICGETUNDER = 2511,
/// Set a hover indicator to plain, squiggle or TT.
SCI_INDICSETHOVERSTYLE = 2680,
/// Retrieve the hover style of an indicator.
SCI_INDICGETHOVERSTYLE = 2681,
/// Set the foreground hover colour of an indicator.
SCI_INDICSETHOVERFORE = 2682,
/// Retrieve the foreground hover colour of an indicator.
SCI_INDICGETHOVERFORE = 2683,
SC_INDICVALUEBIT = 0x1000000,
SC_INDICVALUEMASK = 0xFFFFFF,
SC_INDICFLAG_VALUEFORE = 1,
/// Set the attributes of an indicator.
SCI_INDICSETFLAGS = 2684,
/// Retrieve the attributes of an indicator.
SCI_INDICGETFLAGS = 2685,
/// Set the foreground colour of all whitespace and whether to use this setting.
SCI_SETWHITESPACEFORE = 2084,
/// Set the background colour of all whitespace and whether to use this setting.
SCI_SETWHITESPACEBACK = 2085,
/// Set the size of the dots used to mark space characters.
SCI_SETWHITESPACESIZE = 2086,
/// Get the size of the dots used to mark space characters.
SCI_GETWHITESPACESIZE = 2087,
/// Used to hold extra styling information for each line.
SCI_SETLINESTATE = 2092,
/// Retrieve the extra styling information for a line.
SCI_GETLINESTATE = 2093,
/// Retrieve the last line number that has line state.
SCI_GETMAXLINESTATE = 2094,
/// Is the background of the line containing the caret in a different colour?
SCI_GETCARETLINEVISIBLE = 2095,
/// Display the background of the line containing the caret in a different colour.
SCI_SETCARETLINEVISIBLE = 2096,
/// Get the colour of the background of the line containing the caret.
SCI_GETCARETLINEBACK = 2097,
/// Set the colour of the background of the line containing the caret.
SCI_SETCARETLINEBACK = 2098,
/// Retrieve the caret line frame width.
/// Width = 0 means this option is disabled.
SCI_GETCARETLINEFRAME = 2704,
/// Display the caret line framed.
/// Set width != 0 to enable this option and width = 0 to disable it.
SCI_SETCARETLINEFRAME = 2705,
/// Set a style to be changeable or not (read only).
/// Experimental feature, currently buggy.
SCI_STYLESETCHANGEABLE = 2099,
/// Display a auto-completion list.
/// The lengthEntered parameter indicates how many characters before
/// the caret should be used to provide context.
SCI_AUTOCSHOW = 2100,
/// Remove the auto-completion list from the screen.
SCI_AUTOCCANCEL = 2101,
/// Is there an auto-completion list visible?
SCI_AUTOCACTIVE = 2102,
/// Retrieve the position of the caret when the auto-completion list was displayed.
SCI_AUTOCPOSSTART = 2103,
/// User has selected an item so remove the list and insert the selection.
SCI_AUTOCCOMPLETE = 2104,
/// Define a set of character that when typed cancel the auto-completion list.
SCI_AUTOCSTOPS = 2105,
/// Change the separator character in the string setting up an auto-completion list.
/// Default is space but can be changed if items contain space.
SCI_AUTOCSETSEPARATOR = 2106,
/// Retrieve the auto-completion list separator character.
SCI_AUTOCGETSEPARATOR = 2107,
/// Select the item in the auto-completion list that starts with a string.
SCI_AUTOCSELECT = 2108,
/// Should the auto-completion list be cancelled if the user backspaces to a
/// position before where the box was created.
SCI_AUTOCSETCANCELATSTART = 2110,
/// Retrieve whether auto-completion cancelled by backspacing before start.
SCI_AUTOCGETCANCELATSTART = 2111,
/// Define a set of characters that when typed will cause the autocompletion to
/// choose the selected item.
SCI_AUTOCSETFILLUPS = 2112,
/// Should a single item auto-completion list automatically choose the item.
SCI_AUTOCSETCHOOSESINGLE = 2113,
/// Retrieve whether a single item auto-completion list automatically choose the item.
SCI_AUTOCGETCHOOSESINGLE = 2114,
/// Set whether case is significant when performing auto-completion searches.
SCI_AUTOCSETIGNORECASE = 2115,
/// Retrieve state of ignore case flag.
SCI_AUTOCGETIGNORECASE = 2116,
/// Display a list of strings and send notification when user chooses one.
SCI_USERLISTSHOW = 2117,
/// Set whether or not autocompletion is hidden automatically when nothing matches.
SCI_AUTOCSETAUTOHIDE = 2118,
/// Retrieve whether or not autocompletion is hidden automatically when nothing matches.
SCI_AUTOCGETAUTOHIDE = 2119,
/// Set whether or not autocompletion deletes any word characters
/// after the inserted text upon completion.
SCI_AUTOCSETDROPRESTOFWORD = 2270,
/// Retrieve whether or not autocompletion deletes any word characters
/// after the inserted text upon completion.
SCI_AUTOCGETDROPRESTOFWORD = 2271,
/// Register an XPM image for use in autocompletion lists.
SCI_REGISTERIMAGE = 2405,
/// Clear all the registered XPM images.
SCI_CLEARREGISTEREDIMAGES = 2408,
/// Retrieve the auto-completion list type-separator character.
SCI_AUTOCGETTYPESEPARATOR = 2285,
/// Change the type-separator character in the string setting up an auto-completion list.
/// Default is '?' but can be changed if items contain '?'.
SCI_AUTOCSETTYPESEPARATOR = 2286,
/// Set the maximum width, in characters, of auto-completion and user lists.
/// Set to 0 to autosize to fit longest item, which is the default.
SCI_AUTOCSETMAXWIDTH = 2208,
/// Get the maximum width, in characters, of auto-completion and user lists.
SCI_AUTOCGETMAXWIDTH = 2209,
/// Set the maximum height, in rows, of auto-completion and user lists.
/// The default is 5 rows.
SCI_AUTOCSETMAXHEIGHT = 2210,
/// Set the maximum height, in rows, of auto-completion and user lists.
SCI_AUTOCGETMAXHEIGHT = 2211,
/// Set the number of spaces used for one level of indentation.
SCI_SETINDENT = 2122,
/// Retrieve indentation size.
SCI_GETINDENT = 2123,
/// Indentation will only use space characters if useTabs is false, otherwise
/// it will use a combination of tabs and spaces.
SCI_SETUSETABS = 2124,
/// Retrieve whether tabs will be used in indentation.
SCI_GETUSETABS = 2125,
/// Change the indentation of a line to a number of columns.
SCI_SETLINEINDENTATION = 2126,
/// Retrieve the number of columns that a line is indented.
SCI_GETLINEINDENTATION = 2127,
/// Retrieve the position before the first non indentation character on a line.
SCI_GETLINEINDENTPOSITION = 2128,
/// Retrieve the column number of a position, taking tab width into account.
SCI_GETCOLUMN = 2129,
/// Count characters between two positions.
SCI_COUNTCHARACTERS = 2633,
/// Count code units between two positions.
SCI_COUNTCODEUNITS = 2715,
/// Show or hide the horizontal scroll bar.
SCI_SETHSCROLLBAR = 2130,
/// Is the horizontal scroll bar visible?
SCI_GETHSCROLLBAR = 2131,
SC_IV_NONE = 0,
SC_IV_REAL = 1,
SC_IV_LOOKFORWARD = 2,
SC_IV_LOOKBOTH = 3,
/// Show or hide indentation guides.
SCI_SETINDENTATIONGUIDES = 2132,
/// Are the indentation guides visible?
SCI_GETINDENTATIONGUIDES = 2133,
/// Set the highlighted indentation guide column.
/// 0 = no highlighted guide.
SCI_SETHIGHLIGHTGUIDE = 2134,
/// Get the highlighted indentation guide column.
SCI_GETHIGHLIGHTGUIDE = 2135,
/// Get the position after the last visible characters on a line.
SCI_GETLINEENDPOSITION = 2136,
/// Get the code page used to interpret the bytes of the document as characters.
SCI_GETCODEPAGE = 2137,