Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Upd: ListerPlugin Syntax Viewer/Editor: hpg_ed 0.5
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) Printable version
View previous topic :: View next topic  
Author Message
hpg
Junior Member
Junior Member


Joined: 16 Mar 2003
Posts: 79

PostPosted: Sat Mar 22, 2003 11:56 am    Post subject: Upd: ListerPlugin Syntax Viewer/Editor: hpg_ed 0.5 Reply with quote

Cool A programmers viewer and editor.
New version 0.5:
Fixes:
- PASCAL syntax highlighter was not shown in configuration dialog.
- The states (enabled/disabled) of the toolbar buttons did not correctly
display the states of the current loaded file in editmode.
- Corrected the version information, in 0.4 the files' version info was set
to 0.1.4 instead of 0.4(!).
Changes:
- Added default font chose dialog.
- Implemented a simple print function (does NOT use the Listers default
font nor character set, instead the default listers font will be used.
- Added more options to configuration dialog, tab stops, smart tabs etc.
- The internal configurations dialog's style is set to StayOnTop because
it was not possible to let it stay in the font of the lister window.

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

Regards, have fun!
_________________
hpg666@hotmail.com (hpg Smile
_________________
hpg666@hotmail.com (hpg :-)
Back to top
View user's profile Send private message Send e-mail
hpg
Junior Member
Junior Member


Joined: 16 Mar 2003
Posts: 79

PostPosted: Sun Mar 23, 2003 3:12 am    Post subject: Reply with quote

Update 0.5.1 (still beta):

Fixes:
- Ini-Syntax Highlighter parser error.
It crashed if a line exeeds 1025 characters.

Version 0.5.1 download: www.liveordead.de/free/hpg_ed_051.zip

Regards,
_________________
hpg666@hotmail.com (hpg :-)
Back to top
View user's profile Send private message Send e-mail
fabiochelly
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 594
Location: Vincennes, France

PostPosted: Sun Mar 23, 2003 3:58 am    Post subject: Reply with quote

Could you add support dot XML and PHP files?
_________________
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
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
hpg
Junior Member
Junior Member


Joined: 16 Mar 2003
Posts: 79

PostPosted: Sun Mar 23, 2003 4:01 am    Post subject: Reply with quote

fabiochelly wrote:
Could you add support dot XML and PHP files?


for XML you can use HTML (is almost compatible)

PHP - probably later, the editor is not enhanceable, no public interfaces Wink

Regards,
_________________
hpg666@hotmail.com (hpg :-)
Back to top
View user's profile Send private message Send e-mail
hpg
Junior Member
Junior Member


Joined: 16 Mar 2003
Posts: 79

PostPosted: Sun Mar 30, 2003 8:14 am    Post subject: Reply with quote

Next Beta Version 0.5.3
available at: http://liveordead.de/free/hpg_ed_053.zip

Changes:
V 0.5.3:
Changes:
- chg: using TCMD's suggested directory to store its own ini file in (hpg_eg.ini)
- fix: client region was not always correctly calculated
- fix: configuration dialog's StayOnTop attribut forced the select font dialog
to be displayed behind the config dialog.
- add: using 2 different fonts one for ASCII and another for ANSI display.
Note: you'll need to set up this in hpg_ed's own configuration dialog because
there is currently no API call implemented in TCMD's lister to get its information!
directly.
- chg: the configuration dialog is now plugged in the main lister form and
replaces the editor. This is a workaround of strange behaviors with topmost
dialogs etc.
- chg: changed the configuration dialog and split up the properties into
different sections for easier configuration.
- add: added sample to fonts section to test the two fonts immediately without
the need first to change back to the editor.

V 0.5.2:
Changes:
- Added line/column display of current selection.
- Added % display of current position.
- Added support for jump to % via Listers percent menu item.
- Added 'jump to line' function. Click on the line/columns display opens
the jump to line dialog.
- Avoid the flicker when showing hpg_ed's form a little bit (moved alignment
of controls before showing form).
- When pressing 'n' or 'p' in full lister view (F3) the next and previous.
selected (if any) files will not be loaded if not using the lister's menu.
Now you can press 'n' or 'p' two times (only in non-edit mode!).
The first keypress sets the focus on the lister's main window the second one
is processed by the lister itself instead of the hpg_ed's one.

Known Restrictions:
- In Syntax highlighting mode the editor can only display up to 100000 lines
of source code. If changed to text or ini highlighting mode the file may
be larger.
- If the file is very large the performance of the editor is decreased a lot.
_________________
hpg666@hotmail.com (hpg :-)
Back to top
View user's profile Send private message Send e-mail
SCHMaster
Member
Member


Joined: 07 Feb 2003
Posts: 199
Location: Ukraine

PostPosted: Sun Mar 30, 2003 4:43 pm    Post subject: Reply with quote

2hpg
Configuration dialog - The excellent decision!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Valentino
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 665
Location: Ukraine

PostPosted: Sun Mar 30, 2003 5:04 pm    Post subject: Reply with quote

hpg wrote:
- add: using 2 different fonts one for ASCII and another for ANSI display.
Note: you'll need to set up this in hpg_ed's own configuration dialog because
there is currently no API call implemented in TCMD's lister to get its information!
directly.
You can read wincmd.ini file yourself and take these settings from there.
Back to top
View user's profile Send private message Send e-mail
hpg
Junior Member
Junior Member


Joined: 16 Mar 2003
Posts: 79

PostPosted: Tue Apr 01, 2003 2:07 pm    Post subject: Reply with quote

Valentino wrote:
hpg wrote:
- add: using 2 different fonts one for ASCII and another for ANSI display.
Note: you'll need to set up this in hpg_ed's own configuration dialog because
there is currently no API call implemented in TCMD's lister to get its information!
directly.
You can read wincmd.ini file yourself and take these settings from there.

Smile Yes I could, but what if Christian wants to change its font's location?
_________________
hpg666@hotmail.com (hpg :-)
Back to top
View user's profile Send private message Send e-mail
sqa_wizard
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 2597
Location: Germany

PostPosted: Tue Apr 01, 2003 2:17 pm    Post subject: Reply with quote

hpg wrote:
... if Christian wants to change its font's location


Until now INI settings have never been changed ... only enhanced.

Nevertheless : the plugin has to follow its master Smile
_________________
#5767 Personal license
Back to top
View user's profile Send private message
konmeo
New Member
New Member


Joined: 25 Mar 2003
Posts: 1

PostPosted: Tue Apr 01, 2003 5:56 pm    Post subject: Reply with quote

I like the latest version very much. But can you fix the bug that allows scrolling pass the end of file indefinitely using Down Arrow or Page Down even though "Cursor beyond EOF" has already been turned off?
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24602
Location: Switzerland

PostPosted: Wed Apr 02, 2003 2:37 am    Post subject: Reply with quote

2hpg
Regarding fonts, you can indeed get it from wincmd.ini. To get the location of wincmd.ini, implement the function ListSetDefaultParams . In parameter DefaultIniName, replace the file name given by TC by wincmd.ini to get the full path+file name of the ini location. If no font name is stored, TC uses GetStockObject to get default fonts.

I also recommend that you make the font user-configurable, but do NOT modify wincmd.ini - store it in your own ini. Reason: The user may want a different font for your plugin than for lister itself.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Valentino
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 665
Location: Ukraine

PostPosted: Wed Apr 02, 2003 6:40 am    Post subject: Reply with quote

ghisler(Author) wrote:
2hpg
To get the location of wincmd.ini, implement the function ListSetDefaultParams . In parameter DefaultIniName, replace the file name given by TC by wincmd.ini to get the full path+file name of the ini location.
This won't work in my case because I changed name of wincmd.ini. On PC with several users there can be the same situation (bob.ini, ivan.ini, mefody.ini). IMHO, registry should be also read, but I don't know what should be used first - registry or ListSetDefaultParams (User may pass path to INI via TC command line).
Back to top
View user's profile Send private message Send e-mail
Valentino
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 665
Location: Ukraine

PostPosted: Wed Apr 02, 2003 6:45 am    Post subject: Reply with quote

2hpg
Hi!
1) Options dialog is now placed in Lister window. My Lister window is maximized but only its small portion is used by Options dialog and this portion is much less than dialog, so vertical scroll bar appears and I need to scroll to see "Show line numbers" option, for example.
2) After I changed font I had to close and open Lister to see the changes. Even Reload didn't help.
3) Please add F2 hotkey for reload (as in Lister) in addition to (or instead of) Ctrl+R.
4) In context menu you show "Ctrl-S" for Save but "Shift-Control-S" for Save As. The same for bookmarks.
5) In context menu in highlighter sub-menu (Ctrl+H) I see one empty line at the end (after INI).
6) In the Go To Line dialog german "Abbrechen" is used for "Cancel".
7) I have file with 515 lines and 515 is shown as max line number at the top bar but in Go To Line dialog max line number shown is 468 (although I can type any there).
8 ) Last character in italic line is cut off.
9) Plugin tries to diplay not only registered for it extensions but others too. DLL for example - shows 3 first characters.
10) I don't like imposed color scheme... Smile
Back to top
View user's profile Send private message Send e-mail
AXL
Junior Member
Junior Member


Joined: 13 Feb 2003
Posts: 5
Location: Estonia

PostPosted: Wed Apr 02, 2003 7:23 am    Post subject: Reply with quote


  1. Options / Wrap text - doesn't really work
  2. Vertical scroll bar scrolls only up to column 256 even if line is longer
  3. It is possible to move cursor to infinity both vertically and horizontally.
    Must stop at last line and move from last character on the line to first position on the next line.
  4. Option to position cursor at the end of line when clicking behind the end


thanks
Back to top
View user's profile Send private message
bidule
Junior Member
Junior Member


Joined: 21 Feb 2003
Posts: 2

PostPosted: Thu Apr 03, 2003 9:41 am    Post subject: Reply with quote

When Ctrl-End on a quite long line (360 k single-line file), I've got this :

"Fehler bei Bereichsprüfung."

Wrap lines does not work in these conditions, but it didn't in Lister either.

Otherwise, it's really beautiful Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group