![]() |
Модераторы: Vitalik |
![]() ![]() ![]() |
|
lookfar |
|
|||
Новичок Профиль Группа: Участник Сообщений: 6 Регистрация: 1.12.2006 Репутация: нет Всего: нет |
Mystix with no JVCL:
http://www.autoitscript.com/fileman/users/...uses_SynMix.zip I can compile Mystix using SynMix and the UniHighLighter that is included with Mystix 0.3.1 (highlighters have a *.xml extension and not *.hgl ) Then the editor will load a file with nice syntax highlight and codefolding ... (what did he use to create the xml files?) Mystix with no JVCL and using UniHighLighter 2.04b however If I use Mystix with SynMix and the current Unihighlighter 2.04b I will get nice syntax highlight but no code folding. http://www.autoitscript.com/fileman/users/..._and_SynMix.zip can anyone help ? sorry I do not speak russian |
|||
|
||||
Seldon |
|
||||
Шустрый ![]() Профиль Группа: Участник Сообщений: 114 Регистрация: 23.12.2005 Где: Minsk Репутация: нет Всего: 2 |
--------------------
MiBEditor v2.Alpha 10 - Программерский редактор |
||||
|
|||||
lookfar |
|
||||||
Новичок Профиль Группа: Участник Сообщений: 6 Регистрация: 1.12.2006 Репутация: нет Всего: нет |
Yes {.$DEFINE CODEFOLDING} is of course set to {$DEFINE CODEFOLDING} after compile of the unimanager demo application , CodeFolding works fine but the simple demo and Light editor CodeFolding will not work. as well The Mystix editor I ported over will not fold. not so important as above but when I try load the xml format files into the unimanager I get a "invalid file format" even if I rename to *.hgl |
||||||
|
|||||||
Seldon |
|
||||||||
Шустрый ![]() Профиль Группа: Участник Сообщений: 114 Регистрация: 23.12.2005 Где: Minsk Репутация: нет Всего: 2 |
I didn't work with codefolding so I can't help you with it.
Mystix:
Must be:
SynUniSyn expected integer numbers in \Info\Version\Version and \Info\Version\Revision tags. Other tags in the Info is not important and can be skipped. If you just add following code between <UniHighlighter> and <Range> tags all must be fine ![]()
Or you can change TSynUniFormatNativeXml15.ImportInfo method in the SynUniFormatNativeXml15.pas. Other problem that Mystix's files hasn't tag with highlighter name, so in the HglEditor you will see blank names for it. --------------------
MiBEditor v2.Alpha 10 - Программерский редактор |
||||||||
|
|||||||||
lookfar |
|
||||||||||
Новичок Профиль Группа: Участник Сообщений: 6 Регистрация: 1.12.2006 Репутация: нет Всего: нет |
Thank you for your help, The Mystix editor that uses the older unihighlighter in which for me the code folding works is no good to me because end user cannot easily change the syntax coloring or regions by using the UniManager. But I do not understand this : using unihighlighter 2.0b4, The simple demo works with: var FoldRegion: TFoldRegionItem; begin FoldRegion := SynUni.FoldRegions.Add(rtChar, False, False, False, '{', '}', nil); Edit.InitCodeFolding; Edit.Repaint; end; but will not load the rules from the *.hgl file |
||||||||||
|
|||||||||||
Seldon |
|
|||
Шустрый ![]() Профиль Группа: Участник Сообщений: 114 Регистрация: 23.12.2005 Где: Minsk Репутация: нет Всего: 2 |
from which hgl file? created by UniManager file or Mystix's file?
--------------------
MiBEditor v2.Alpha 10 - Программерский редактор |
|||
|
||||
lookfar |
|
||||||
Новичок Профиль Группа: Участник Сообщений: 6 Регистрация: 1.12.2006 Репутация: нет Всего: нет |
From the Unimanager file. I have tried every version on the UniHighlighter web page, I completely remove and re-install between versions in both Delphi 6 and Delphi 7. No matter what I do I cannot get code folding to work by loading from the *.hgl files. I just tried the light demo in the form oncreate event:
I am using *.hgl file which I have confirmed have fold regions, ie autoit261.hgl:
I really have no idea of what to try next, I have been trying to make this work for 2 days with no joy |
||||||
|
|||||||
Seldon |
|
|||
Шустрый ![]() Профиль Группа: Участник Сообщений: 114 Регистрация: 23.12.2005 Где: Minsk Репутация: нет Всего: 2 |
hm, maybe codefolding broken in Unihighlighter 2.04b, I really don't known. CodeFolding actively discussed here http://forum.vingrad.ru/topic-106449.html, try links from it.
--------------------
MiBEditor v2.Alpha 10 - Программерский редактор |
|||
|
||||
lookfar |
|
||||||
Новичок Профиль Группа: Участник Сообщений: 6 Регистрация: 1.12.2006 Репутация: нет Всего: нет |
I removed 2.0 b4 and installed 2.0 b1 and wala I had folding ! So to be sure I re-installed 2.0b4 and this time it worked ... however the demos would not work until I placed the next code in the Form OnCreate event:
If I remove the defines:
Then folding does not work. But I am Happy that it is working! I will use it in my AutoIt Editor: http://www.autoitscript.com/fileman/users/lookfar/ and later in Koda (the form Designer) If anyone likes the AutoEd editor (see screenshots) which has parameter completion, autoProposal completion and code completion all with the dropdown in color . ask and I will post source code for it. |
||||||
|
|||||||
![]() ![]() ![]() |
Rules and hints for the forum "SynUniHighlighter" | |
|
Hello, dear user! This is official forum for SynUniHighlighter component and unofficial forum for SynEdit, Codefolding and all related projects. Some rules for the forum: 1. Do not create new topic if exactly the same already exists. 2. Don't ask several questions in the same topic. One topic - one question. 3. If discussion changes to far from original topic context, then create a separate thread for new discussion subject. If you already registered then click here to log in. If you havent't registered yet then click here and register. You need to type username, password (twice), email (twice) and security code. Next you need go here and choose English language instead of Russian and press Enter. Some hints for enghlish-speaking users:
|
1 Пользователей читают эту тему (1 Гостей и 0 Скрытых Пользователей) | |
0 Пользователей: | |
« Предыдущая тема | SynUniHighlighter and SynEdit (English Language) | Следующая тема » |
|
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности Powered by Invision Power Board(R) 1.3 © 2003 IPS, Inc. |