Author Topic: Text Re-/Formater utility  (Read 2324 times)

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
Text Re-/Formater utility
« on: April 21, 2010, 09:07:24 PM »
While we can do all of this already but step-by-step only,
or with scripting but without an nice interface,
i want to suggest an new feature: Text Re-/Formater

I imagine to start this tool from Format menu
and it should work on all text in doc or on selection only.

Since this are already used features from other well sold application
i mean this could bring some new customers too  ;)

Instead of an description i add some screen shots.
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2190
  • Karma: +37/-3
    • HippoEDIT
Re: Text Re-/Formater utility
« Reply #1 on: April 21, 2010, 09:51:35 PM »
Hi Stefan,

Do not know... I agree that feature can be useful, but am not sure if this should come into standard.
There are a lot of of free tools that can do the same, why just not call them through tools with passing back/forward text?
Also for me, because I try to have all functionality syntax related, I miss this here. But if you want to have this syntax based you need to have such tool for every language.

Scripting/tool/plug-in?

But let see what other think.

Best regards,
Alex.

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
Re: Text Re-/Formater utility
« Reply #2 on: April 21, 2010, 10:20:21 PM »
I am simply not aware of such an freeware tool which could be used as HE tool.

Only clipboard tools which i have to use as separate tool outside, not inside of HE,
and they would overwrite the last clipboard content.

We can use tools like sed and awk, but without an GUI and such it is not flexible
to do now this formating and later that clean up.

The same with scripting... no GUI to choose now this three formating options and later that four clean ups.

[deleted text]

Since you want to implement "execute tool and replace selection with output" anyway
i can try to create such an tool with AutoHotkey.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2190
  • Karma: +37/-3
    • HippoEDIT
Re: Text Re-/Formater utility
« Reply #3 on: April 21, 2010, 11:20:49 PM »
Google search "for source code formatter"

Scripting with support of user dialogs as you have shown some when for PSPad?

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
Re: Text Re-/Formater utility
« Reply #4 on: April 22, 2010, 12:48:44 PM »
Google search "for source code formatter"
Interesting keywords to search for, thanks. I will see if i find something from interest since i didn't want to format source code but just plain text.
And this tool has to be stand-alone and portable and has to interact smoothly with HippoEDIT

Quote
Scripting with support of user dialogs as you have shown some when for PSPad?
No, PSPad provides no own GUI for scripts, just the tools from VBS, JS or such.
Someone who has coded an search&replace tool for PSPad has provided his own dll for the GUI.

PSPad has only some possibilities to create an GUI dialog for "CodeTemplates"
as e.g. show drop-down selection boxes, or show an open-files dialog and such.
You can build an GUI-dialog with several of this controls to show your own CodeTemplate dialog.
For example for an HTML template you can create an dialog with an drop-down box to
chose from an variety of pre-build encoding strings. Or an pick-the-color control to chose an color for the <font color=>, e.g..


Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2190
  • Karma: +37/-3
    • HippoEDIT
Re: Text Re-/Formater utility
« Reply #5 on: April 22, 2010, 07:49:32 PM »
Also one more example is TextFX plugin for Notepad++. I think there should be also a standalone executable for it.

I thought that PSPad can use them as for templates as for scripting... This is strange.
I think the good way for HE will be in developing of services for such functionality then functionality itself.
Because my resources are limited and I prefer that somebody else can help here ;)

Currently there are several areas in HE where such GUI dialogs can be used: scripting, templates and plugins. So it costs efforts because can be utilized and make stronger more than one area of editor.