[fpc-pascal] Adding code indentation without Lazarus

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Mon Jan 2 17:15:22 CET 2012



On Mon, 2 Jan 2012, luciano de souza wrote:

> hello listers,
>
> A blind programer doesn't matter whether a code is indented. That's my
> case. For us, it's natural to disregard all code  formatation.
>
> In spite of that, the indentation is crucial. If my code is read by
> sighted programers, they will be disturbed. So if it's possible, I
> want to type my code without indentation and after I want to process
> de dcoe with a commandline tool which adds the indentation.
>
> A friend told me: "Use Lazarus. It indents the code automatically".
> No, Lazarus is not a alternative for me. The graphical interface of
> Lazarus has severe restrictions in terms of accessibility.
>
> My editor is Gedit. In Linux, there are not lots of accessible
> editors. For this reason, I don't think I will get a plugin to do it
> for me.
>
> So I ask: Does someone know a commandline tool that indents the code
> automatically?

Yes. FPC comes with a tool ptop. It indents code. It is probably not as
powerful as the lazarus code formatter, but it does the job.

Michael.



More information about the fpc-pascal mailing list