Ann: hpg_ed.wlx : Syntax Hilighting Viewer and (!)Editor

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

hpg
Junior Member
Junior Member
Posts: 79
Joined: 2003-03-16, 12:20 UTC

Ann: hpg_ed.wlx : Syntax Hilighting Viewer and (!)Editor

Post by *hpg »

8)
Here is a programmers viewer and editor, I used in the past a lot. Now I think its time to share, maybe someone find it useful.
Comments are welcomed (and I know there is another similar plugin out there SynEd :-)

Download: http://liveordead.de/free/hpg_ed.zip

Regards, have fun!
User avatar
lzvk25
Member
Member
Posts: 183
Joined: 2003-02-09, 04:28 UTC
Location: Collierville, TN

Post by *lzvk25 »

This is very cool ! Thank you ! :D

PS.
Is there a way we could help you to integrate more programming languages for future versions ?

:?:
Memo to Boss : No TC, No Work
hpg
Junior Member
Junior Member
Posts: 79
Joined: 2003-03-16, 12:20 UTC

Post by *hpg »

lzvk25 wrote: PS.
Is there a way we could help you to integrate more programming languages for future versions ?

:?:
Unfortunately the systax highlighters are interational part of the editor component, so it seems to be very hard to enhance it. If someone knows about a new version of the RALIB please tell me.
But: nothing is impossible ;-)

thnx, cu
User avatar
lzvk25
Member
Member
Posts: 183
Joined: 2003-02-09, 04:28 UTC
Location: Collierville, TN

Post by *lzvk25 »

2hpg :
If someone knows about a new version of the RALIB please tell me.
I made a quick search and I found the R&A Library 2.01 (RALIB) at :
http://www.gsc.hu/delphicomp.php?lang=en

Also check for Synedit 1.1 at :
http://delphi.icm.edu.pl/newl/c40/f008_001.htm
http://synedit.sourceforge.net

I hope this helps.
:)
Last edited by lzvk25 on 2003-03-17, 15:22 UTC, edited 1 time in total.
Memo to Boss : No TC, No Work
User avatar
henrich.fukna
Junior Member
Junior Member
Posts: 60
Joined: 2003-03-07, 10:18 UTC
Location: Bratislava, Slovakia

Post by *henrich.fukna »

Yep, good plugin :D

PS: is someway to change colors ? (separately for languages?)

Henrich
hpg
Junior Member
Junior Member
Posts: 79
Joined: 2003-03-16, 12:20 UTC

Post by *hpg »

henrich.fukna wrote:Yep, good plugin :D

PS: is someway to change colors ? (separately for languages?)

Henrich
Next version,sure! also the correct states of cut, copy and paste will be corrected :-)
User avatar
robinsiebler
Senior Member
Senior Member
Posts: 460
Joined: 2003-03-05, 21:04 UTC

Problem with XML files

Post by *robinsiebler »

I loaded an XML file in Lister. I pressed '4' to edit it with this plugin. The plugin showed up with an empty pane. I pressed '1' to redisplay the file in Lister. It showed up just fine. I went back to the plugin (same empty pane) and clicked on the reload button. I got a 'File not found' dialog box.
Robin L. Siebler
Personal License #13949
------------------------------
"Bother", said Pooh, as he deleted Windows
hpg
Junior Member
Junior Member
Posts: 79
Joined: 2003-03-16, 12:20 UTC

Re: Problem with XML files

Post by *hpg »

robinsiebler wrote:I loaded an XML file in Lister. I pressed '4' to edit it with this plugin. The plugin showed up with an empty pane.
I pressed '1' to redisplay the file in Lister. It showed up just fine. I went back to the plugin (same empty pane) and clicked on the reload button. I got a 'File not found' dialog box.
I cannot reproduce this here. Is the XML file in an archive, I noticed this behavior sometimes with different file types. Did you add xml to the html systax highlighter in the configuration dialog?

I you did all correctly please send me the XML file, maybe there is a problem with the editor itself.

Regards,
hpg
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

Hi,

Great congratulations for your plugin.

Could you support Ultraedit word files? with that you'll have hundreds of new formats supported.

I cannot see 'Pascal' in the configure list: I would like to add .dfm and .dpr to the default Pascal extensions.

Is it possible to choose the font?
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
User avatar
lzvk25
Member
Member
Posts: 183
Joined: 2003-02-09, 04:28 UTC
Location: Collierville, TN

Post by *lzvk25 »

I took a quick look at the R&A Library 2.01 (RALIB) found at :
http://www.gsc.hu/delphicomp.php?lang=en

And according to hpg, it is being used in the development of this plugin.
And it seems that the languages syntax are hardcoded in this library, specifically in the file \ralib\lib\RAHLEditor.pas

Maybe it will be needed to modify this file (or maybe other) in order to accomodate more languages.
:?
Memo to Boss : No TC, No Work
hpg
Junior Member
Junior Member
Posts: 79
Joined: 2003-03-16, 12:20 UTC

Post by *hpg »

fabiochelly wrote: Could you support Ultraedit word files? with that you'll have hundreds of new formats supported.
Not at this time, I'm evaluating SynEdit1.1 at this time, but the TAB handling (indenting!) is very strange...
fabiochelly wrote: I cannot see 'Pascal' in the configure list: I would like to add .dfm and .dpr to the default Pascal extensions.
Pascal is still there, but the configuration dialog has a bug and do not display this file type in the tree :-(,
next version I will fix it! (I already associated the dfm files to c++builder :)
To associate the PASCAL file type you may edit the hpg_ed.ini file (located
either in your tcmd's directory or in your window's folder:

locate section EXT:

[EXT]
...
.dfm=1
.dpr=1
...

add these two entries and you're done!

1 = Syntax highlighting id for PASCAL/Delphi, maybe I will find the time to document that ;-)
fabiochelly wrote: Is it possible to choose the font?
Of course, the font will be cofigurable in the next version and also the colours used for the highlighters.


Ok, I think there is a lot of stuff in the next version. I wrote the plugin from scratch, because I needed it. But there seemed to be some very strange bugs left.
I hope in Version 0.5 all bugs are fixed.

Regards,
hpg
User avatar
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

Last edited by norfie on 2004-09-10, 19:30 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, hpg_ed is very nice, I use it too now - but I'm also missing line numbers for source code.
Author of Total Commander
https://www.ghisler.com
User avatar
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

Last edited by norfie on 2004-09-10, 19:32 UTC, edited 1 time in total.
User avatar
corny
Junior Member
Junior Member
Posts: 96
Joined: 2003-02-07, 10:06 UTC

Bugs in hpg_ed

Post by *corny »

Hi,

I've started using hpg_ed this week, and noticed a few little bugs:

1. Separating functions by writing "//***************" (dunno why I did that) isn't supported by hpg_ed. All lines following that string are interpreted as comment (which is correct when "/* */" is used for marking comments, but in fact this is a single line comment because of // ).
2. The font configuration dialog disappears in the back of the main configuration dialog.
3. When adding an extension which is already supported by another type (ie adding .inc in the C/C++, which also exists in PASCAL) makes hpg_ed not to respond anymore.

That's all I have for now, this is a great plugin!
Regards,
Cornelis
Post Reply