News:

;) This forum is the property of Proton software developers

Main Menu

Beatifier/formatter for the language

Started by keytapper, Apr 18, 2022, 06:39 AM

Previous topic - Next topic

keytapper

Hello forum,
Some times I receive sources for a review, as picky as I am, I'd like to see the source in a certain format.
Anybody knows some program that can handle positron basic?
Ignorance comes with a cost

normnet

While not a code formatter FineLineIDE does auto indent, case and color compiler words and variables etc. with user settings.

keytapper

#2
Quote from: normnet on Apr 20, 2022, 09:04 PMWhile not a code formatter FineLineIDE does auto indent
I'll give it a try.

EDIT
I tried the program but the indentation happen during the typing of new text.
BTW the attached file is the highlighter for kate Editor.

I create a python script to format the source with few rules.
According certain parameters the indentation will be placed at the number of spaces wanted, the in line comment will start at the middle of the given width, except for those comments that start without a code. Multiline comments are left intact.
I still have to handle to split long line which are exceeding the wanted width. It needs to find where a word is beyond the maximum width.

Ignorance comes with a cost