Page 2 of 3

Re: how to order the source code?!

Posted: Fri Dec 12, 2014 2:47 pm
by emzampi
The display is made with notepad ++, rewrote the program code riordinandolo and saving it with another name

Re: how to order the source code?!

Posted: Fri Dec 12, 2014 5:17 pm
by chrisjx2002
I have made some improvements to the program of Mr Joe Fanucchi. You can find it at this url :

viewtopic.php?f=5&t=2551&p=22617&hilit=indent#p22617

Re: how to order the source code?!

Posted: Fri Dec 12, 2014 6:45 pm
by emzampi
Sorry but this program 'indent' eliminates the line of the program does not work well !! Careful not to use the original prg

Re: how to order the source code?!

Posted: Fri Dec 12, 2014 6:54 pm
by Amarante
Hello friends,
This is a change from version 2.03 to run in HMG.
The process is the same, that is, download the click.exe to the directory where the programs to be reformatted, and after running, will create a "ClickOut" subdirectory with the new formatted programs
You can edit the "click.ini" and configure it.
Change the file "compile.bat" with the HMG path installed on your computer.
Missing changes to adapt it to the specific commands of HMG. If someone has the time and inclination, you can change it without restrictions.
-------------------------------
Olá amigos,
Esta é uma alteração da versão 2.03 para funcionamento em HMG.
O processo é o mesmo, ou seja, transfira o click.exe para o diretório onde estão os programas a serem reformatados, e após executar, será criado um subdiretório "clickout" com os novos programas formatados
Você pode editar o arquivo "click.ini" e configurá-lo.
Altere o arquivo "Compile.bat" com o path do HMG instalado em seu computador.
Faltam alterações para adaptá-lo para os comandos específicos do HMG. Se alguém estiver com tempo e disposição, pode alterá-lo sem restrições.
--------------------------------

Re: how to order the source code?!

Posted: Fri Dec 12, 2014 9:07 pm
by Pablo César
Legal Amarante, vou compilar e testar.

Obrigado por compartilhar ! :)

Re: how to order the source code?!

Posted: Sat Dec 13, 2014 9:26 am
by dhaine_adp
Hi,

IMHO, if you picked your preferred code editor like NotePad++ and Crimson Editor you can set tabs to be replaced by space. Also both support unicode. For me I used Notepad++ to modify various files like .ch, .h, .c, .txt, .log, .cfg, .ini, etc. and Crimsor Editor as the default .prg editor (although I can still open .prg with Notepad++ but I disassociated it from that). Windows Notepad for .cmd and .bat files. On both editors you can do block code editing which is very helpful in coding repeated object names and arrays.

For each program I used I put a shortcut or keyboard accelerators so they can be started without using the mouse.
CTRL+ALT+A => HMG IDE ANSI
CTRL+ALT+U => HMG IDE Unicode
CTRL+ALT+C => Crimson/Emerald Editor
CRTL+ALT+E => Notepad++
CRTL+ALT+N => Windows Notepad
CRTL+ALT+P => Windows Paint
CRTL+ALT+S => Snippingtool

Above all make sure that the font that you are using is fix width font such as: Courier New, Lucida Console, Terminal (from Crimson Editor). Notepad++ is great but I'm comfortable with the first.

Re: how to order the source code?!

Posted: Sat Dec 13, 2014 1:52 pm
by emzampi
Amarante hello, sorry but I can not run Click.exe, if you can explain how to do after copying click the directory of the prg to be rewritten. thanks again

Re: how to order the source code?!

Posted: Sat Dec 13, 2014 10:50 pm
by dragancesu
A long time ago I used the program SNAP when I learned Clipper, a great program but hmg is different and you can not use the menus nor CLICK proposed

Unix / linux commonly used C and they have progam bc - beautifier c

I looked at these programs and I think that could be used for hmg
http://universalindent.sourceforge.net/
of course, when the adjust

Re: how to order the source code?!

Posted: Sat Dec 13, 2014 11:04 pm
by Pablo César
Thank you Dragan for the link indicated. I will study later, it seems ok for minigw.

Re: how to order the source code?!

Posted: Sun Dec 14, 2014 12:23 pm
by Amarante
emzampi wrote:Amarante hello, sorry but I can not run Click.exe, if you can explain how to do after copying click the directory of the prg to be rewritten. thanks again
Click reformat the files ".prg" contained in the same directory where is "Click.exe"
Move the "Click.exe" to the directory where are the ".prg" or move the ".prg" to the directory where the "Click.exe"
After running will create a subdirectory "ClickOut" (below the directory where the "Click.exe") with the new ".prg"
The files ".prg" original are left intact.
Hope this helps.