You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/plugin-communication.md
+76Lines changed: 76 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -612,6 +612,26 @@ User is responsible to allocate a buffer which is large enough.*
612
612
613
613
---
614
614
615
+
#### **NPPM_GETCURRENTMACROSTATUS**
616
+
*Gets the current macro status (idle, recording, stopped, and playing back) as an enumeration class object. (Added v8.3.3)*
617
+
618
+
**Parameters**:
619
+
620
+
*wParam [in]*
621
+
: int, must be zero.
622
+
623
+
*lParam [in]*
624
+
: int, must be zero.
625
+
626
+
**Return value**:
627
+
: An object of the enumeration class MacroStatus, with values:
628
+
-`MacroStatus::Idle` - means macro is not in use and it's empty
629
+
-`MacroStatus::RecordInProgress` - macro is currently being recorded
630
+
-`MacroStatus::RecordingStopped` - macro recording has been stopped
631
+
-`MacroStatus::PlayingBack` - macro is currently being played back
632
+
633
+
---
634
+
615
635
#### **NPPM_GETCURRENTNATIVELANGENCODING**
616
636
*Retrieves the code page associated with the current localisation of Notepad++.*
617
637
@@ -734,6 +754,27 @@ User is responsible to allocate a buffer which is large enough.*
734
754
735
755
---
736
756
757
+
#### **NPPM_GETEXTERNALLEXERAUTOINDENTMODE**
758
+
*Get ExternalLexerAutoIndentMode for an installed external programming language.
759
+
Puts that mode in the output object. (Added v8.3.3)*
760
+
761
+
**Parameters**:
762
+
763
+
*wParam [in]*
764
+
: const tChar\* languageName, the name of the language to get
765
+
766
+
*lParam [out]*
767
+
: ExternalLexerAutoIndentMode &autoIndentMode, an object of the enumeration class ExternalLexerAutoIndentMode, with values:
768
+
-`ExternalLexerAutoIndentMode::Standard` => 0
769
+
-`ExternalLexerAutoIndentMode::C_Like` => 1
770
+
-`ExternalLexerAutoIndentMode::Custom` => 2
771
+
772
+
773
+
**Return value**:
774
+
: TRUE for successful searches, otherwise FALSE.
775
+
776
+
---
777
+
737
778
#### **NPPM_GETEXTPART**
738
779
*Retrieves the extension of the filename of the current document.
739
780
User is responsible to allocate a buffer which is large enough.
@@ -1286,6 +1327,22 @@ struct ShortcutKey {
1286
1327
1287
1328
---
1288
1329
1330
+
#### **NPPM_ISAUTOINDENTON**
1331
+
*Checks the current Use Auto-Indentation setting in Notepad++ Preferences. (Added v8.3.3)*
1332
+
1333
+
**Parameters**:
1334
+
1335
+
*wParam [in]*
1336
+
: int, must be zero.
1337
+
1338
+
*lParam [in]*
1339
+
: int, must be zero.
1340
+
1341
+
**Return value**:
1342
+
: TRUE if Auto-Indentation is on, FALSE otherwise.
1343
+
1344
+
---
1345
+
1289
1346
#### **NPPM_ISDOCLISTSHOWN**
1290
1347
*Checks the visibility of the Document List panel.*
1291
1348
@@ -1720,6 +1777,25 @@ If value is True adds an additional sunken edge style to the Scintilla window el
1720
1777
1721
1778
---
1722
1779
1780
+
#### **NPPM_SETEXTERNALLEXERAUTOINDENTMODE**
1781
+
*Set ExternalLexerAutoIndentMode for an installed external programming language. (Added v8.3.3)*
1782
+
1783
+
**Parameters**:
1784
+
1785
+
*wParam [in]*
1786
+
: const tChar\* languageName, the name of the language to set
1787
+
1788
+
*lParam [in]*
1789
+
: ExternalLexerAutoIndentMode autoIndentMode, an object of the enumeration class ExternalLexerAutoIndentMode, where you supply one of the following values:
1790
+
-`ExternalLexerAutoIndentMode::Standard` => 0
1791
+
-`ExternalLexerAutoIndentMode::C_Like` => 1
1792
+
-`ExternalLexerAutoIndentMode::Custom` => 2
1793
+
1794
+
**Return value**:
1795
+
: TRUE for successful searches, otherwise FALSE.
1796
+
1797
+
---
1798
+
1723
1799
#### **NPPM_SETLINENUMBERWIDTHMODE**
1724
1800
*Set line number margin width in dynamic width mode (LINENUMWIDTH_DYNAMIC) or constant width mode (LINENUMWIDTH_CONSTANT).
1725
1801
It may help some plugins to disable non-dynamic line number margins width to have a smooth visual effect while vertical scrolling the content in Notepad++*
0 commit comments