[Oberon] Indentation in V2 sources.
Chris Burrows
chris at cfbsoftware.com
Mon Feb 15 02:14:31 CET 2021
> -----Original Message-----
> From: Oberon [mailto:oberon-bounces at lists.inf.ethz.ch] On Behalf Of
> peter at easthope.ca
> Sent: Monday, 15 February 2021 10:52 AM
> To: oberon at lists.inf.ethz.ch
> Subject: [Oberon] Indentation in V2 sources.
>
> From chris at cfbsoftware.com Sun Jul 23 08:28:17 2017
> > a) Wirth's Project Oberon: Two spaces for used for each level of
> > indentation.
>
> Chris, the OCC at
> https://en.wikibooks.org/wiki/User:PeterEasthope/sandbox is indented
> as you say. The indentation appears more narrow than in the original
> PDF. Different softwares render blanks differently. In the
> wikibook, four blanks per indent will yield a geometry closer to the
> book.
>
> Is the sandbox view tolerable? Insert more blanks? Comments?
>
The indentation probably appears more narrow because different fonts are
used.
This is always very subjective. What I prefer could easily irritate somebody
else. I like to use monospaced fonts when writing code so that every column
of characters is aligned.
If I was putting code samples in Wikibooks I would follow guidelines like
those specified, for example, in the REALbasic/Style Guide:
https://en.wikibooks.org/wiki/REALbasic/Style_Guide
I did try the <code> tag in the Sandbox with an Oberon example and that
inserted additional blank lines. Surrounding code with the <pre> </pre> tags
seemed to work well.
Regards,
Chris
More information about the Oberon
mailing list