ann: hpg_0.5.13 - Programmer's viewer&editor

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

Moderators: Hacker, petermad, Stefan2, white

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

Post by *hpg »

djk wrote:
AlleyKat wrote:I'm none too sure about djk's thing with alt-f4? I just hit Escape. ;)
Viewing the file I also use Esc, but editing it I prefer Alt+F4 because Esc means for me: "cancel all the changes and close".
Moreover Alt+F4 is by default set in keyboard settings but... it doesn't work.
Ok, the keyboard section contains also some less useful definitions not used in the lister plugin version of the editor :-)
So there may be a stand-alone editor availble in the near future, where the functions may be useful.
User avatar
SUKER
Junior Member
Junior Member
Posts: 88
Joined: 2003-08-25, 07:15 UTC

Post by *SUKER »

hpg
Hi. here 1 bug:
1) open file
2) select all
3) you can't copy this.... ):
And during working with file, sometimes I can't copy selected text...

Also, I don't understand, how configure my own classes, and then
define for them different colors... :oops: Can you explain me please, or this is impossible in your plugin?
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

I can't reproduce the bug but I've also noticed that in some cases (unfortunately I still can't specify when exactly it happens) copying selected text doesn't work correctly.
I will try to find it and describe...
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
djek
Junior Member
Junior Member
Posts: 46
Joined: 2003-02-11, 14:07 UTC

Post by *djek »

SUKER wrote:hpg
Hi. here 1 bug:
1) open file
2) select all
3) you can't copy this.... ):
And during working with file, sometimes I can't copy selected text...
This happens if you select everything or a part with the mouse to the top of the document.
You can see the copy icon turning on and off.
hpg
Junior Member
Junior Member
Posts: 79
Joined: 2003-03-16, 12:20 UTC

Post by *hpg »

Also, I don't understand, how configure my own classes, and then
define for them different colors... Can you explain me please, or this is impossible in your plugin?
No problem ;-), just use the readme.doc to see how user reserved keywords work. In your code you can specify a line (usually in a comment) with the $res=userkeyw.txt statement. The userkw.txt is loaded and the included keywords are treated as reserved words. The colours can be changing by using the "User reserved" colour.
User avatar
SUKER
Junior Member
Junior Member
Posts: 88
Joined: 2003-08-25, 07:15 UTC

Post by *SUKER »

hpg
Hi again.
No problem , just use the readme.doc to see how user reserved keywords work.
In archive from http://www.liveordead.de/free/hpg_ed_0513.zip I have found only Readme.txt :( And of course I already read it :)
What I did:
I have 2 files in same dir: test.cpp and myclasses.txt
test.cpp:
/* $res=myclasses.txt */

suker
myclasses.txt:
suker
I open test.cpp go to preferences and change color of "User reserved word" in C/C++ - nothing happens :( :(


But if it will work, anyway it is not user friendly and not useful.

1) In my work code I can't add such lines as " $res=myclasses.txt " even in comments :(
2) I can set only 1 own class :(

In case of this I offer to do next (like in ultraedit ):
To set default file like userclasses.ini in hpg_ed (or system) dir. In which users can add there keywords, with syntax like this:
...
[SQl] /* type of file */
/C1 /* first class*/
CTION ACTIVE ADD ADMIN AFTER ALL ALTER AND ANY
...
/C2 /* second class*/
AVG
COUNT CAST
MAX MAXIMUM
...
/C2 /* third class*/
bool blob
CHAR DATE CSTRING
....
/C6
I think 6 classes is quite enough.

If you will do so, it wood be grateful!!!

Big thanks for your plugin once more ;) and sorry for my English :oops:
alex
Junior Member
Junior Member
Posts: 2
Joined: 2003-04-18, 14:20 UTC

Some bugs and feature requests

Post by *alex »

Hi,
Interesting plugin... I have started using it, but I want to report one bug which I find very annoying: If I view a file I can press page down, and down forever......

I would like as a feature request to be able to edit the default keyword list for some languages and the possibility to add new file types. Is this possible?
Thanks!
User avatar
SUKER
Junior Member
Junior Member
Posts: 88
Joined: 2003-08-25, 07:15 UTC

Post by *SUKER »

alex
I would like as a feature request to be able to edit the default keyword list for some languages and the possibility to add new file types. Is this possible?
Hello, I also very want these features, read my post above...

hpg
WE WANT THIS :?: :?: :?: :!: :!: :!:
hpg
Junior Member
Junior Member
Posts: 79
Joined: 2003-03-16, 12:20 UTC

Post by *hpg »

But if it will work, anyway it is not user friendly and not useful.
It should work. You must place the $RES.. statement in the first 500 bytes (or so) and it should be recognized.
In newer versions you can assign sets of keywords to a given highlighter (then called document class, very like the textpad's one)
hpg
Junior Member
Junior Member
Posts: 79
Joined: 2003-03-16, 12:20 UTC

Post by *hpg »

Interesting plugin... I have started using it, but I want to report one bug which I find very annoying: If I view a file I can press page down, and down forever......
hehe, I think about writing a Q&A text, that's for real a mistake in the default settings of the editor. You can go to configuration select Tab&Indention, Mark the Option: Cursor Beyond EOF and then the cursor cannot be moved so far.
hpg
Junior Member
Junior Member
Posts: 79
Joined: 2003-03-16, 12:20 UTC

Post by *hpg »

hpg
WE WANT THIS
me too, believe me, but its not so easy. I've just started with an extended version but there are currently too much restrictions left. This will take some more time to finish :-(
User avatar
corny
Junior Member
Junior Member
Posts: 96
Joined: 2003-02-07, 10:06 UTC

Post by *corny »

hpg wrote:Thanks for the fast reply. I fixed it. It was indead the prblem with 2 different libs in 2 different versions :-(

So I decided to make a new version, because the plugin is donwloaded and probably some sites may link to the 0.5.12 version.
I think I overlooked this before, but after downloading the new version it seems to be fixed indeed. Great work! :D
Regards,
Cornelis
User avatar
SUKER
Junior Member
Junior Member
Posts: 88
Joined: 2003-08-25, 07:15 UTC

Post by *SUKER »

2hpg
It should work. You must place the $RES.. statement in the first 500 bytes (or so) and it should be recognized.
It doesn't work. I place the $RES.. statement in the beginning of the file without coment
$RES=my.txt
But this isn't important, it would be better if you occupied with extended version ;)
One more: if I change file, and close it, I see a 'save' dialog with 2 button - 'yes' or 'no', it's would useful, if you add third button - 'cancel'.
Then if I press 'Yes', Its called 'Save as' dialog. I think this action must only save existing file ;)
me too, believe me, but its not so easy. I've just started with an extended version but there are currently too much restrictions left. This will take some more time to finish
I hope you will handle this task. Good luck...
hpg
Junior Member
Junior Member
Posts: 79
Joined: 2003-03-16, 12:20 UTC

Post by *hpg »

But this isn't important, it would be better if you occupied with extended version
One more: if I change file, and close it, I see a 'save' dialog with 2 button - 'yes' or 'no', it's would useful, if you add third button - 'cancel'.
I can't because the Lister itself not the plugin decides to close.
Then if I press 'Yes', Its called 'Save as' dialog. I think this action must only save existing file
Ok this is right, better would be a Save, SaveAs, No Dialog
User avatar
henrich.fukna
Junior Member
Junior Member
Posts: 60
Joined: 2003-03-07, 10:18 UTC
Location: Bratislava, Slovakia

Post by *henrich.fukna »

Color highlight error:

Code: Select all

<html>
  <head>
    <title>
      Color highlight error example
    </title>
  </head>
  <body>
    Open the document in TCs hpq_ed plugin.
    <div id="daanim">
      <object id="da" style="left: 10px; width: 500px; top: 40px; height: 300px; position: absolute;" classid="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D">
      </object>
      <script language="JavaScript">
      <!--

      lib = da.PixelLibrary;

      col1 = lib.Interpolate(0, 1, 10);
      col2 = lib.DANumber(0);
      color = lib.ColorRGBAnim(col1, col2, col2);

      Image1 = lib.SolidColorImage(color);

      da.Image = Image1;
      da.Start();
      //-->
      </script>
    </div>
   </body>
</html>
Henrich
Post Reply