FeyFre, почему о5? Чем в прошлый раз закончилась его демонстрация?
Ваше видео - недостаточное условие для того, чтобы оно у меня заработало)
Разве что поможет Вам опять найти ошибку...
Думаю, и без видео можно обойтись.
Условия те же: Templates::Main не в автозагрузке.
Добавлено:
Перескачал ещё раз. Плаг не работает вообще, т.е. и функция Main тоже, даже когда она в автозагрузке. Но по Ctrl+N хоть создаётся обычный файл.
FeyFre,
С релизом!
Заметил такую вещь: в какой кодировке не был бы шаблон, плагин открывает и отображает его в правильной кодировке, но в окне AkelPad выбирается всегда cp 1251 (по умолчанию в настройках AkelPad) и для сохранения документа (если кодировка отлична от cp 1251) уже приходится выбирать кодировку вручную. Нельзя ли сделать синхронизацию, т.е. если шаблон, к примеру в utf -16 le, то и в окне AkelPad открывался в ней же?
Да, шаблон может быть в любой распознаваемой редактором кодировке. Но плагин не открывает шаблон, он просто читает его, и вставляет в новый документ, я не думаю что это хорошая идея - принудительно, без спросу менять кодировку новому документу, установленную пользователем в настройках, которая используется только в операциях сохранения(работа с текстом в любом случае выполняется в UCS-2)
По второму вопросу, Вы правы в принципе, единственный момент, если попадётся чужой шаблон с диакритикой или на "крючках", гадать придётся при сохранении. Может флаг, вроде "Использовать кодировку шаблона" можно сделать?
;----------------------------------------------;
; Coder plugin syntax file ;
;----------------------------------------------;
;For comfort file viewing/editing set tab size to 8 or higher.
;==========
;File types
;==========
Extensions:
}::|::{
;----------------------------------------------;
; 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 match and don't highlight quote start ("Quotes:" section only).
; 256 don't match 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).
;
;Font styles
; 0 ignored.
; 1 normal.
; 2 bold.
; 3 italic.
; 4 bold italic.
;
;Colors
; Color need to be in #RRGGBB format.
; If color equal to zero, then color ignored.
;========================
;Font Font Face
;style size name
;========================
Font:
0 0 ""
;==============================================================================
;Basic Basic Sel Sel Line Line Column Marker Caret URL
;text bkgrnd text bkgrnd text bkgrnd
;==============================================================================
Colors:
0 0 0 0 0 0 0 0 0 0
;======================================================================
;Flags Font Color Color Quote Quote Escape Quote Quote
; style text bkgrnd start end char include exclude
;======================================================================
Quotes:
;======================================
;Flags Font Color Color Char(s)
; style text bkgrnd
;======================================
Delimiters:
;===================================
;Flags Font Color Color Word
; style text bkgrnd
;===================================
Words:
;----------------------------------------------;
; 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 one-level fold - use fold start string as fold end string, fold end string is ignored. ("Folds:" section only).
; 256 comment fold - fold ignore any other folds and skips inside. ("Folds:" section only).
;=============================
;Flags Skip Skip Escape
; start end char
;=============================
Skips:
;=================================
;Flags Fold Fold Delimiters
; start end
;=================================
Folds:
;----------------------------------------------;
; AutoComplete ;
;----------------------------------------------;
;====================================
;Set variables for "Blocks:" section.
;
;VAR "VALUE"
;====================================
Variables:
;======================================================================
;Abbreviations and blocks
;
; $~abbr abbreviation.
; $[] 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 name that has been set in "Variables:" section.
; $; comment line.
; $# comment line.
;======================================================================
Blocks: