Skip to content

Commit e302069

Browse files
authored
Merge pull request #332 from pryrt/api833
API Updates for v8.3.3
2 parents bcf1a02 + 01840b3 commit e302069

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

content/docs/plugin-communication.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,26 @@ User is responsible to allocate a buffer which is large enough.*
612612

613613
---
614614

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+
615635
#### **NPPM_GETCURRENTNATIVELANGENCODING**
616636
*Retrieves the code page associated with the current localisation of Notepad++.*
617637

@@ -734,6 +754,27 @@ User is responsible to allocate a buffer which is large enough.*
734754

735755
---
736756

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+
737778
#### **NPPM_GETEXTPART**
738779
*Retrieves the extension of the filename of the current document.
739780
User is responsible to allocate a buffer which is large enough.
@@ -1286,6 +1327,22 @@ struct ShortcutKey {
12861327

12871328
---
12881329

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+
12891346
#### **NPPM_ISDOCLISTSHOWN**
12901347
*Checks the visibility of the Document List panel.*
12911348

@@ -1720,6 +1777,25 @@ If value is True adds an additional sunken edge style to the Scintilla window el
17201777

17211778
---
17221779

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+
17231799
#### **NPPM_SETLINENUMBERWIDTHMODE**
17241800
*Set line number margin width in dynamic width mode (LINENUMWIDTH_DYNAMIC) or constant width mode (LINENUMWIDTH_CONSTANT).
17251801
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

Comments
 (0)