>> Is there a best practice for ConTeXt source files, at all?

Readable code is not just about formatting. Adding clear and complete comments 
that document the code can be considered even more important.

dr. Hans van der Meer


> On 24 Apr 2021, at 13:55, Henning Hraban Ramm <te...@fiee.net> wrote:
> 
> 
>> Am 24.04.2021 um 11:45 schrieb Jan U. Hasecke <juh+ntg-cont...@mailbox.org>:
>> 
>> Do you know of any prettifying tool?
> 
> I don’t know one.
> 
>> Is there a best practice for ConTeXt source files, at all?
> 
> I guess many of us adhere to Hans’ style, as shown in the sources.
> 
> i.e. e.g.
> \setupsomething
>  [name]
>  [key=value,
>   otherkey=value]
> 
> while I prefer:
> 
> \setupsomething[name][
>  key=value,
>  otherkey=value,
> ]
> 
> That looks clearer to me and works a bit better with automatic indenting in 
> editors.
> 
> But source code formatting is a matter of taste in most cases.
> 
> Hraban
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to