Author Topic: Syntax Tools  (Read 2784 times)

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2161
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Syntax Tools
« on: May 24, 2013, 12:05:38 am »
New Syntax Tools Plugin has been published.
The plugin contains functions for importing of syntax files from other editors (as UltraEdit, TextPad or PSPad) into HippoEDIT format.

More information can be found on wiki.
Suggestions and comments - here.

Offline Anonymous

  • Anonymous
  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: Syntax Tools
« Reply #1 on: May 26, 2013, 07:36:37 pm »
Idea, dirty: take Delphi component econtrol.ru; make a dll from it; make dll parse file to token list (econtrol can it); use dll to get tokens ; get token colors too; and color all after it.

only dirty idea

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2161
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Syntax Tools
« Reply #2 on: June 03, 2013, 12:17:12 am »
Generally I have not understood for what purpose for...
And seems much more complex as just parse configuration files in javascript as it already done for UE, TextPad and PSPad...

Offline Anonymous

  • Anonymous
  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: Syntax Tools
« Reply #3 on: July 03, 2013, 07:31:33 pm »
Didn't understand? bad. i try to write it again. u can take Scintilla library and parse source code to Scintilla structures. then HE calls this Scintilla based code part and takes parsed results from it. then HE colorizes file, based on this Scintilla results.

what for? for coloring like in Scintilla.

why not use Scintilla as is? HE can't do it.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2161
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Syntax Tools
« Reply #4 on: July 03, 2013, 08:55:12 pm »
But why not to just define syntax schema for HippoEDIT? It will be much less effort then writing new parser based on Scintilla.
I understand the idea, and it is possible to write a plug-in for HE that extends built in syntax highlighting, but I do not see benefits, for rather big effort.
It will make sense if HE can not do syntax highlighting by itself, or syntax highlighting of Scintilla will be much more powerful. 

Offline Anonymous

  • Anonymous
  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: Syntax Tools
« Reply #5 on: July 04, 2013, 08:31:17 pm »
i assumed Sci Hilite IS MORE powerfull. e.g., take Oberon lexer. does HE hilite all Oberon constructs so correct as Sci lexer does? no. and Oberon lexeer written in Oberon as external DLL (maybe it bad example - u can't use it).

or C++ lexer in Sci -isn't it more powerfull. not sure.
if Sci hilite isn't more powefull, forget it.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2161
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Syntax Tools
« Reply #6 on: July 05, 2013, 12:11:43 am »
HE currently do not have schema for Oberon (maybe need to migrate one from UE or TextPad if somebody need). So, I can not compare. Probably, if language has very complicated syntax, that can not be covered by regexp definitions, and has dedicated, hardcoded lexer for scintilla, scintilla will be better (actually not scintilla as you mentioned, but lexer). But is it cost effort.. ?

C++ in Scintilla is not more powerful (maybe they can parse #ifdef _DEBUG, HE cant ). But HE can highlight special characters in strings (like \n \r \t etc), highlight functions and classes, todos etc.

So, it it rather time consuming to create for HE Scintilla based lexer + Scintilla lexer will not provide all information HE needs.
If somebody else would like to help with such plugin, I will provide all needed help ;)

BR, Alex.

 

Related Topics

  Subject / Started by Replies Last post
combining tools

Started by cichlasoma General Discussion

1 Replies
1315 Views
Last post May 09, 2010, 11:33:51 pm
by alex
3 Replies
1414 Views
Last post December 07, 2010, 03:31:46 pm
by alex
0 Replies
1427 Views
Last post April 08, 2013, 12:03:34 am
by alex
0 Replies
1454 Views
Last post April 28, 2013, 09:33:54 pm
by alex
3 Replies
363 Views
Last post September 19, 2016, 08:41:04 am
by alex