Coder plugin (2)

Discuss and announce AkelPad plugins
Locked
  • Author
  • Message
Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »


KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

Instructor
Now is OK, thanks.

Offline
Posts: 84
Joined: Fri May 28, 2010 1:28 pm

Post by private_joker »

Instructor wrote:Добавлено: цвета для LineBoard плагина (se7h).
Как же давно (Ср Дек 08, 2010 8:47) я об этом мечтал :D
Спасибо!

Offline
Posts: 84
Joined: Fri May 28, 2010 1:28 pm

Post by private_joker »

:? При выборе цветовой темы (из иконки тулбара), при открытом файле падает. Версия x64.

Offline
Posts: 874
Joined: Sat Jan 16, 2010 2:03 pm

Post by opk44 »

1) Версия 4.8.3.0 (x86) также падает при смене цветовой темы.
AkelPad.exe 4.8.3.0
Coder.dll 10.8.0.0
Смена темы производилась через вызов меню окна редактирования:
"Bespin" Call("Coder::Settings", 5, "Bespin")

2) Версия 4.8.4.0 (x86) dev (md5: 7523a0b0c02fb90211f49783bc9f9d2e) не падает при смене цветовой темы.

Offline
Posts: 3217
Joined: Wed Nov 29, 2006 1:19 pm
Location: Киев, Русь
Contact:

Post by VladSh »

Хотел отредактировать, но прошлая тема закрыта, потому запощу обновление сюда:

Code: Select all

; fb2 (VladSh)
; http://akelpad.sourceforge.net/forum/viewtopic.php?p=7983#p7983
; Version of 2013.05.20
;----------------------------------------------;
;           Coder plugin syntax file           ;
;----------------------------------------------;

;Colors
; Color need to be in #RRGGBB format.
; If color equal to zero, then color ignored.
;
;Font styles
; 0  ignored.
; 1  normal.
; 2  bold.
; 3  italic.
; 4  bold italic.
;
;For comfort file viewing/editing set tab size to 8 or higher.


Files:
;==========
;File types
;==========
*.fb2


;----------------------------------------------;
;                  HighLight                   ;
;----------------------------------------------;

;Flags (sum of the members)
;     1  case sensitive.
;     2  word is a composition of characters ("Words:" section only). Example: "0123456789" - highlight words that contain only digits.
;     4  quote end required ("Quotes:" section only).
;     8  quote start string is ignored and last meet delimiter used as quote start ("Quotes:" section only).
;    16  quote end string is ignored and first meet delimiter used as quote end ("Quotes:" section only).
;    32  don't highlight quote start ("Quotes:" section only).
;    64  don't highlight quote end ("Quotes:" section only).
;   128  don't catch and don't highlight quote start ("Quotes:" section only).
;   256  don't catch and don't highlight quote end ("Quotes:" section only).
;   512  quote start, delimiter or word located at line start.
;  1024  quote end, delimiter or word located at line end.
;  2048  quote start is surrounded with delimiters ("Quotes:" section only).
;  4096  quote end is surrounded with delimiters ("Quotes:" section only).
;  8192  quote doesn't contain delimiters ("Quotes:" section only).
; 16384  only quote start string is catched ("Quotes:" section only).


Font:
;=================================================================
;FontStyle             FontSize              FaceName
;=================================================================
${HighLight_FontStyle} ${HighLight_FontSize} ${HighLight_FaceName}


Colors:
;=============================================================================================================================================================================================================================================================================================================================================================================================================================
;BasicTextColor             BasicBkColor              SelTextColor              SelBkColor              LineTextColor              LineBkColor              LineBorderColor              AltTextColor              AltBkColor              AltBorderColor              ColumnColor              MarkerColor              CaretColor              UrlColor              ActiveUrlColor              VisitUrlColor
;=============================================================================================================================================================================================================================================================================================================================================================================================================================
${HighLight_BasicTextColor} ${HighLight_BasicBkColor} ${HighLight_SelTextColor} ${HighLight_SelBkColor} ${HighLight_LineTextColor} ${HighLight_LineBkColor} ${HighLight_LineBorderColor} ${HighLight_AltTextColor} ${HighLight_AltBkColor} ${HighLight_AltBorderColor} ${HighLight_ColumnColor} ${HighLight_MarkerColor} ${HighLight_CaretColor} ${HighLight_UrlColor} ${HighLight_ActiveUrlColor} ${HighLight_VisitUrlColor}


BkImage:
;==================================================
;BkImageFile              BkImageAlpha
;==================================================
${HighLight_BkImageFile}  ${HighLight_BkImageAlpha}


AutoMark:
;====================================================================================================================
;AutoMarkFlags             AutoMarkFontStyle              AutoMarkTextColor              AutoMarkBkColor
;====================================================================================================================
${HighLight_AutoMarkFlags} ${HighLight_AutoMarkFontStyle} ${HighLight_AutoMarkTextColor} ${HighLight_AutoMarkBkColor}


Quotes:
;======================================================================
;Flags  Font    Color   Color   Quote   Quote   Escape  Quote   Quote
;       style   text    bkgrnd  start   end     char    include exclude
;======================================================================
;5=1+4
;389=1+4+128+256
;397=1+4+8+128+256
;401=1+16+128+256
;12420=4+128+4096+8192
5	3	${STR}	0	`"`	`"`	""	""	""
5	3	${STR}	0	"'"	"'"	""	""	""
5	3	${COMM}	0	"<!--"	"-->"	""	""	""
12420	2	${OP}	0	"</"	"FictionBook"              ""	""	""
12420	2	${OP}	0	"<"	"FictionBook"              ""	""	""
12420	2	${OP}	0	"</"	"description"              ""	""	""
12420	2	${OP}	0	"<"	"description"              ""	""	""
12420	2	${OP}	0	"</"	"body"              ""	""	""
12420	2	${OP}	0	"<"	"body"              ""	""	""
12420	3	${OP}	0	"</"	"title-info"              ""	""	""
12420	3	${OP}	0	"<"	"title-info"              ""	""	""
12420	3	${OP}	0	"</"	"document-info"              ""	""	""
12420	3	${OP}	0	"<"	"document-info"              ""	""	""
12420	3	${OP}	0	"</"	"publish-info"              ""	""	""
12420	3	${OP}	0	"<"	"publish-info"              ""	""	""
12420	0	${OP}	0	"</"	"section"              ""	""	""
12420	0	${OP}	0	"<"	"section"              ""	""	""
12420	3	${OP}	0	"</"	"title"              ""	""	""
12420	3	${OP}	0	"<"	"title"              ""	""	""
12420	3	${NUM}	0	"</"	"empty-line"              ""	""	""
12420	3	${NUM}	0	"<"	"empty-line"              ""	""	""
389	0	${TAG}	0	"</"	">"	""	""	""
401	0	${TAG}	0	"<"	""	""	""	""
397	0	${ATTR}	0	""	"="	""	""	""
401	0	${STR}	0	"="	""	""	""	""


QuotesRE:
;==========================================================================
;Flags  Pattern         \BackRef=(FontStyle,ColorText,ColorBk) \BackRef=...
;==========================================================================


Delimiters:
;======================================
;Flags  Font    Color   Color   Char(s)
;       style   text    bkgrnd
;======================================
1	0	0	0	" "
1	0	0	0	"	"
1	0	0	0	`"`
1	0	${DEL1}	0	</
1	0	${DEL1}	0	/>
1	0	${DEL1}	0	<
1	0	${DEL1}	0	>
1	0	${DEL2}	0	=


Words:
;===================================
;Flags  Font    Color   Color   Word
;       style   text    bkgrnd
;===================================


;----------------------------------------------;
;                   CodeFold                   ;
;----------------------------------------------;

;Flags (sum of the members)
;      1  case sensitive.
;      2  force get fold name for function list from left at the fold start ("Folds:" section only).
;      4  force get fold name for function list from right at the fold start, including fold start ("Folds:" section only).
;      8  fold start located at line start ("Folds:" section only).
;     16  fold start located at line end ("Folds:" section only).
;     32  fold end located at line start ("Folds:" section only).
;     64  fold end located at line end ("Folds:" section only).
;    128  don't catch fold end ("Folds:" section) or skip end ("Skips:" section).
;    256  additional to 128 flag - more priority is given to sibling level instead of parent level ("Folds:" section only).
;    512  comment fold - fold ignore any other folds and skips inside ("Folds:" section only).
;   1024  reserved.
;   2048  deny fold - founded fold will be ignored ("Folds:" section only).
;   4096  xml fold - "<tag" and "</tag>", "<single" and "/>", "<single" and ">" ("Folds:" section only).
;   8192  don't check delimiters from left of fold start ("Folds:" section only).
;  16384  don't check delimiters from right of fold start ("Folds:" section only).
;  32768  don't check delimiters from left of fold end ("Folds:" section only).
;  65536  don't check delimiters from right of fold end ("Folds:" section only).
; 131072  deny delimiters ("Folds:" section only).


FoldPanel:
;=================================================================================================================================================================================================================================================================================================================================================================================================================================================================
;PanelFirstBkColor            PanelSecondBkColor             PanelNormalFoldColor             PanelActiveFoldColor             PanelNormalNodeOpenBkColor             PanelNormalNodeCloseBkColor             PanelActiveNodeOpenBkColor             PanelActiveNodeCloseBkColor             PanelNormalNodeOpenSignColor             PanelNormalNodeCloseSignColor             PanelActiveNodeOpenSignColor             PanelActiveNodeCloseSignColor
;=================================================================================================================================================================================================================================================================================================================================================================================================================================================================
${CodeFold_PanelFirstBkColor} ${CodeFold_PanelSecondBkColor} ${CodeFold_PanelNormalFoldColor} ${CodeFold_PanelActiveFoldColor} ${CodeFold_PanelNormalNodeOpenBkColor} ${CodeFold_PanelNormalNodeCloseBkColor} ${CodeFold_PanelActiveNodeOpenBkColor} ${CodeFold_PanelActiveNodeCloseBkColor} ${CodeFold_PanelNormalNodeOpenSignColor} ${CodeFold_PanelNormalNodeCloseSignColor} ${CodeFold_PanelActiveNodeOpenSignColor} ${CodeFold_PanelActiveNodeCloseSignColor}


FoldList:
;================================================
;ListTextColor            ListBkColor
;================================================
${CodeFold_ListTextColor} ${CodeFold_ListBkColor}


TagMark:
;============================================================================================================
;TagMarkFlags            TagMarkFontStyle             TagMarkTextColor             TagMarkBkColor
;============================================================================================================
${CodeFold_TagMarkFlags} ${CodeFold_TagMarkFontStyle} ${CodeFold_TagMarkTextColor} ${CodeFold_TagMarkBkColor}


Skips:
;=============================
;Flags  Skip    Skip    Escape
;       start   end     char
;=============================
1	`"`	`"`	""
1	"'"	"'"	""


Folds:
;===============================================================
;Flags  Font    Color   Color   Fold         Fold     Delimiters
;       style   text    bkgrnd  start        end
;===============================================================
;2049=1+2048
2049	0	0	0	"<!--"       "--->"   ""
;517=1+4+512
517	3	${COMM}	0	"<!--"       "-->"    ""
;517=1+4+512
517	0	0	0	"<![CDATA["  "]]>"    ""
;2049=1+2048
2049	0	0	0	"</"         ""       ""
;4101=1+4+4096
4101	0	0	0	"<!"         ">"      ""
;5=1+4
5	0	0	0	"<?"         "?>"     ""
;4101=1+4+4096
4101	0	0	0	"<"          "</"     ""
;4101=1+4+4096
4101	0	0	0	"<"          "/>"     ""


;----------------------------------------------;
;                 AutoComplete                 ;
;----------------------------------------------;

Blocks:
;======================================================================
;Abbreviations and blocks
;
; $~abbr   normal abbreviation.
; $=abbr   exact abbreviation. May contain delimiters.
; $[]      set caret to this position. Can be multiple (hot spots).
; $[text]  select text. Can be multiple (hot spots).
; $$       symbol $.
; $\]      escape symbol ]. Can be used in $[text] block: $[One [1$\] ].
; ${VAR}   variable assigned from Coder::Settings.
; $;       comment line.
;======================================================================

$~encoding="utf-8"
<?xml version="1.0" encoding="utf-8"?>

$~encoding="Windows-1251"
<?xml version="1.0" encoding="Windows-1251"?>

$~description
<description>
${AutoComplete_Indent}$[]
</description>

$~title-info
<title-info>
${AutoComplete_Indent}$[]
</title-info>

$~genre
<genre>$[]</genre>

$~author
<author>
${AutoComplete_Indent}$[]<first-name>$[]</first-name>
${AutoComplete_Indent}$[]<last-name>$[]</last-name>
${AutoComplete_Indent}$[]<middle-name>$[]</middle-name>
${AutoComplete_Indent}$[]<nickname>$[]</nickname>
${AutoComplete_Indent}$[]<email>$[]</email>
</author>

$~book-title
<book-title>$[]<book-title>

$~annotation
<annotation>$[]</annotation>

$~keywords
<keywords>$[]<keywords>

;ГГГГ-ММ-ДД
$~date
<date>$[]</date>

$~coverpage
<coverpage><image l:href="#cover.jpg"/></coverpage>

$~lang
<lang>$[]</lang>

$~src-lang
<src-lang>$[]</src-lang>

$~translator
<translator>
${AutoComplete_Indent}$[]<first-name>$[]</first-name>
${AutoComplete_Indent}$[]<last-name>$[]</last-name>
${AutoComplete_Indent}$[]<middle-name>$[]</middle-name>
${AutoComplete_Indent}$[]<nickname>$[]</nickname>
${AutoComplete_Indent}$[]<email>$[]</email>
</translator>

$~sequence
<sequence name="$[]" number="$[]"/>

$~src-title-info
<src-title-info>
${AutoComplete_Indent}$[]
</src-title-info>

$~document-info
<document-info>
${AutoComplete_Indent}$[]
</document-info>

$~program-used
<program-used>$[]</program-used>

$~src-url
<src-url>$[]</src-url>

$~src-ocr
<src-ocr>$[]</src-ocr>

$~id
<id>$[]</id>

$~version
<version>$[]</version>

$~history
<history>
${AutoComplete_Indent}$[]<p></p>
</history>

$~publish-info
<publish-info>
${AutoComplete_Indent}$[]
</publish-info>

$~book-name
<book-name>$[]</book-name>

$~publisher
<publisher>$[]</publisher>

$~city
<city>$[]</city>

$~year
<year>$[]</year>

$~custom-info
<custom-info>
${AutoComplete_Indent}$[]
</custom-info>

$~body
<body>
${AutoComplete_Indent}$[]
</body>

$~title
<title>
${AutoComplete_Indent}<p>$[]</p>
${AutoComplete_Indent}<p>$[]</p>
</title>

$~subtitle
<subtitle>$[]</subtitle>

$~section
<section>
${AutoComplete_Indent}$[]
</section>

$~section+title
<section>
${AutoComplete_Indent}<title>
${AutoComplete_Indent}${AutoComplete_Indent}<p>$[]</p>
${AutoComplete_Indent}</title>
${AutoComplete_Indent}
${AutoComplete_Indent}$[]
</section>

$~annotation
<annotation>
${AutoComplete_Indent}$[]
<annotation>

$~epigraph
<epigraph>
${AutoComplete_Indent}
</epigraph>

$~poem
<poem>
${AutoComplete_Indent}$[]
</poem>

$~stanza
<stanza>
${AutoComplete_Indent}<v>$[]</v>
</stanza>

$~cite
<cite>
${AutoComplete_Indent}$[]
</cite>

$~empty-line $~line
<empty-line />

$~par
<p>$[]</p>

$~strong
<strong>

$~emphasis
<emphasis>

$~strikethrough
<strikethrough>

$~image
<image l:href="#$[i_001].jpg"/>

$~binary
<binary id="$[i_001].jpg" content-type="$[image/jpeg]">/9j/
4AAQSkZJRgABAgAAZABkAAD/
$[]
</binary>

Offline
Posts: 874
Joined: Sat Jan 16, 2010 2:03 pm

Post by opk44 »

Instructor
Надо бы указать (в документации к плагину) требования к кодировке Coder-файлов (UTF-16LE). А то сейчас это только из уст в уста передается, и попробуй сам догадайся... В противном случае, неспособность плагина работать с файлами в другой кодировке следует считать багом.

Offline
Posts: 84
Joined: Fri May 28, 2010 1:28 pm

Post by private_joker »

opk44
Есть же BOM (сигнатура) - FFFE.

Offline
Posts: 366
Joined: Mon Jan 10, 2011 5:28 pm
Contact:

Post by Lenchik »

Instructor wrote:Не воспроизводится. Может дело в видеодрайвере.
Видеокарта Nvidia, обновил до последнего стабильного - без изменений. Папку Акеля выслал.

Offline
Posts: 1862
Joined: Mon Aug 06, 2007 1:07 pm
Contact:

Post by Infocatcher »

Andrey_A_A wrote:2. Открыто несколько txt файлов и один ini
в ini включаю функцию сворачивания блоков и отображения списка
но при переходе на txt файл тоже отображается, а не хотелось (в txt никаких блоков и списков нет)
Можно ли реализовать, чтобы функция сворачивания блоков и отображения списка настраивалась под расширения или как-то ещё...
Image

Offline
Posts: 670
Joined: Thu Jun 03, 2010 8:47 am
Location: Сочи, Хоста
Contact:

Post by Andrey_A_A »

Infocatcher

Это не срабатывает

Image

Offline
Posts: 874
Joined: Sat Jan 16, 2010 2:03 pm

Post by opk44 »

Andrey_A_A wrote:Это не срабатывает
Насколько мне известно, Вы используете собственный файл

Code: Select all

; Txt.coder
;============================================================
; Собрал, Составил, Изменил Аверин Андрей для AkelPad Image
; Version: 1.1 (01.09.2010 - 25.07.2012)
; Mail: Averin-And@yandex.ru
; Домашняя страница: http://tc-image.3dn.ru
;============================================================
...
...
Folds: 
173	0	0	0	[       [       ""
173	0	0	0	"***"       "***"       ""
173	0	0	0	"---"       "---"       ""
...

Таким образом, Вы не можете утверждать, что "в txt никаких блоков и списков нет". Блоки/фолдсы у ВАС как раз таки есть (в схеме)!. Для файла Txt.coder с сайта (с пустой секцией Folds), предложенный Infocatcher-ом способ работает.

Offline
Posts: 670
Joined: Thu Jun 03, 2010 8:47 am
Location: Сочи, Хоста
Contact:

Post by Andrey_A_A »

Таким образом, Вы не можете утверждать, что "в txt никаких блоков и списков нет"
Как раз таки утверждаю, или на скриншоте не видно? (а про Folds: я прекрасно знаю)

В этом и есть хотелка - проверять есть ли в списке блоки, если нет, то не отображать.

Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

Lenchik wrote:Видеокарта Nvidia, обновил до последнего стабильного - без изменений. Папку Акеля выслал.
Проверяется на видеокарте Radeon.

votan

Post by votan »

Might be a dumb question.... but how can I produce multiline quotes?
Want it to look like this:

Print "This is
a multiline
text"


I already know that code folding needs to be enabled... but whatever I try, can't get it to work.

Thanks in advance.
Locked