how to order the source code?!

Utilities like DBU, Make, IDE written in HMG/ used to create HMG based applications

Moderator: Rathinagiri

emzampi
Posts: 106
Joined: Sun Aug 11, 2013 9:00 am

Re: how to order the source code?!

Post by emzampi »

The display is made with notepad ++, rewrote the program code riordinandolo and saving it with another name
chrisjx2002
Posts: 190
Joined: Wed Jan 06, 2010 5:39 pm

Re: how to order the source code?!

Post 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
emzampi
Posts: 106
Joined: Sun Aug 11, 2013 9:00 am

Re: how to order the source code?!

Post by emzampi »

Sorry but this program 'indent' eliminates the line of the program does not work well !! Careful not to use the original prg
User avatar
Amarante
Posts: 182
Joined: Fri Apr 27, 2012 9:44 pm
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL
Location: Araruama-RJ, Brazil

Re: how to order the source code?!

Post 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.
--------------------------------
Attachments
Click_3.01_HMG.rar
(51.31 KiB) Downloaded 343 times
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Re: how to order the source code?!

Post by Pablo César »

Legal Amarante, vou compilar e testar.

Obrigado por compartilhar ! :)
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
dhaine_adp
Posts: 457
Joined: Wed Aug 06, 2008 12:22 pm
Location: Manila, Philippines

Re: how to order the source code?!

Post 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.
Regards,

Danny
Manila, Philippines
emzampi
Posts: 106
Joined: Sun Aug 11, 2013 9:00 am

Re: how to order the source code?!

Post 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
User avatar
dragancesu
Posts: 921
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: how to order the source code?!

Post 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
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Re: how to order the source code?!

Post by Pablo César »

Thank you Dragan for the link indicated. I will study later, it seems ok for minigw.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Amarante
Posts: 182
Joined: Fri Apr 27, 2012 9:44 pm
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL
Location: Araruama-RJ, Brazil

Re: how to order the source code?!

Post 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.
Post Reply