Instructor
Предлагаю в xml.coder добавить *.ts - все локализации на Transifex идут в xml-формате.
Posted: Sat Apr 04, 2015 4:27 pm
by FeyFre
VladSh
А ещё это файлы torrent stream.
Posted: Sat Apr 04, 2015 4:51 pm
by Lenchik
И транспортный поток MPEG-TS HDTV
Posted: Sat Apr 04, 2015 5:09 pm
by Akuro
Highlighting and folding of Markdown syntax - is there anything like it available?
Or a tutorial how to create my own lexer for markdown syntax? I am mostly interested in folding #headings and ##subheadings.
Please excuse me if this is the wrong section - the English discussion seems to general for something syntax-related like Markdown.
Posted: Sat Apr 04, 2015 5:09 pm
by VladSh
FeyFre, Lenchik
Это добро вряд ли кто-то будет пытаться открыть в AkelPad. Вот если бы кто-то попросил сделать ассоциации на запуск этого файла в AkelPad, тогда да.
Posted: Sat Apr 04, 2015 5:50 pm
by KDJ
Akuro wrote:Highlighting and folding of Markdown syntax - is there anything like it available?
Thank you KDJ,
I put the file as md.coder into \AkelFiles\Plugs\Coder, where all the other coders reside.
I also added a line to ContextMenu::ShowMenu under the heading
Похоже, все до сих пор игнорируют настройку "Умный кеш" ("Smart cache").
А ведь она была добавлена специально для того, чтобы при старте AkelPad его кеш автоматически обновлялся при любых изменениях в файлах .coder ! (При любых изменениях = модификации, добавлении нового файла или удалении старого файла .coder)
Posted: Sun Apr 05, 2015 8:20 am
by Akuro
VladSH
thank you very much. Running your code did the trick.
One more thing, if you don't mind - I wonder if I could get folding in a hierarchical fashion, to see indented folds in the folds panel, nested inside others, depending on heading levels.
Here is what I entered into md.coder under the Folds-section:
If I knew how to do this, I could even use txt -files and set up my own schemes for headings instead of abusing Markdown for it. Any suggestions for what I should enter into the .coder file to achieve this?
Posted: Sun Apr 05, 2015 10:34 am
by Skif_off
Akuro wrote:If I knew how to do this, I could even use txt -files and set up my own schemes for headings instead of abusing Markdown for it.
Skif_off
Хорошо! Но вместо # лучше использовать §.
Posted: Sun Apr 05, 2015 10:22 pm
by Skif_off
VladSh
Набросал на примере Akuro, заменить не проблема Сам при необходимости использую в txt.coder правило как в ini.coder для секций (*** пометка), вложенность как-то пока не требовалась.
Posted: Mon Apr 06, 2015 6:56 am
by Akuro
Skif_off
THANK YOU. This looks very promising.
I still need to understand some of the end-stuff === and --- or how to apply/ modify it. Been reading coder-help but this does not come easy. Guess I have to look at more .coder examples to make more sense of it.
Any help resources I am not aware of? For instance, is it possible to apply RegEx rules for start/end? Such as "^#" to apply the end-rule to line beginnings only?
Posted: Mon Apr 06, 2015 2:15 pm
by Skif_off
Akuro
Unfortunately my English is bad In a few words.
You can see flags for HighLight and CodeFold in any coder-file.
Akuro wrote:For instance, is it possible to apply RegEx rules for start/end? Such as "^#" to apply the end-rule to line beginnings only?
Yes, but RegEx rule"^#" - inconvenient:
works with
Rule "^\s++#" don't works because regular expression not fixed length. But flag 8 (fold start located at line start) will work in both cases.
Akuro wrote:I still need to understand some of the end-stuff === and --- or how to apply/ modify it.
We need to specify the beginning and end of the block for folding, but where is the end in your example? So I added rare text's combinations "===" and "---", now we have the correct form and folding (you can choose another symbols).