How do I highlight text from a .js script?
How do I select a specific MARK color from a .js script?
How do I read the number of open documents in .js?
Mark
- Author
- Message
-
Offline
- Posts: 1345
- Joined: Thu Nov 16, 2006 11:53 am
- Location: Kyiv, Ukraine
Re: Mark
Regarding the highlight/mark, the very first example inside "AkelPad\AkelFiles\Docs\Coder-Eng.txt" mentions that:
Regarding the number of open documents, refer to the "AkelDLL.h" as the the source of truth:
https://sourceforge.net/p/akelpad/codes ... /AkelDLL.h
You may use
specifying one of these flags:
Here is an example:
Code: Select all
Call("Coder::HighLight", 2, "#RRGGBB", "#RRGGBB", FLAGS, FONTSTYLE, ID, "TEXT", TEXTLENGTH)
Parameters:
2
Mark selected or specified text. Multiline text not supported.
...
Example:
Call("Coder::HighLight", 2, "#000000", "#9BFF9B", 1, 0, 1)
https://sourceforge.net/p/akelpad/codes ... /AkelDLL.h
You may use
Code: Select all
AKD_FRAMESTATS (WM_USER + 267)Code: Select all
//AKD_FRAMESTATS flags
#define FWS_COUNTALL 0 //Count of windows. lParam not used.
#define FWS_COUNTMODIFIED 1 //Count of modified windows. lParam not used.
#define FWS_COUNTSAVED 2 //Count of unmodified windows. lParam not used.
#define FWS_CURSEL 3 //Active window zero based index. lParam not used.
#define FWS_COUNTNAMED 4 //Count of named windows. lParam not used.
#define FWS_COUNTFILE 5 //Count of file in different frames. (wchar_t *)lParam is full file name string.
Code: Select all
SendMessage(hMainWnd, AKD_FRAMESTATS, FWS_COUNTALL, 0);