From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/111160 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: How to write readable source files? Date: Sat, 24 Apr 2021 14:12:34 +0200 Message-ID: References: <3dd2b977-d5c1-774e-e6d2-6afa42ad4340@mailbox.org> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2288678574342027135==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5751"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 24 14:13:20 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1laHA0-0001P7-2E for gctc-ntg-context-518@m.gmane-mx.org; Sat, 24 Apr 2021 14:13:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D6625282C0C; Sat, 24 Apr 2021 14:12:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zhw4KheHxAr0; Sat, 24 Apr 2021 14:12:52 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1BD76282C1E; Sat, 24 Apr 2021 14:12:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A2F22282C1E for ; Sat, 24 Apr 2021 14:12:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0VRGf53F0IuY for ; Sat, 24 Apr 2021 14:12:48 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.215.177; helo=mail-pg1-f177.google.com; envelope-from=luigi.scarso@gmail.com; receiver= Original-Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 3A2DE282B5A for ; Sat, 24 Apr 2021 14:12:48 +0200 (CEST) Original-Received: by mail-pg1-f177.google.com with SMTP id p12so36983753pgj.10 for ; Sat, 24 Apr 2021 05:12:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=xoeDfTrYftFQbWxij17I67ho7O9Se07rNCZL7WCGEYo=; b=qIg4fV4bCKx/xWJ3azsf6TFID+NAQwghIH/4YY1GkKP2Hhhc8OTsm180D6ayel7FU1 SMNBkWmQEloc82lNGF4ujPKOLgGFPaU0i3UKZa2V6bHTvrbNs+e95eOXgFfa9A6bb46J fP2xRU9E0/1f/Akx77rCY+qTJB8bB10zmhAsZbSbYUpMJpwtB5fGAsxGpTBi3AOT375Q bzPk2p7bAt6UEszWH3r1wQMYKxODS5C3DPOxQVz4j5MrxLm9GNkTpd6+YeV5oWdPzsrX mppBDq8K20N13WTrln0aFDgxtxQ5fINdpsyICViEE2wFojaR16mhuM5ceJcYHNNJ0p3m 8kcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=xoeDfTrYftFQbWxij17I67ho7O9Se07rNCZL7WCGEYo=; b=FszUzfNMnRKYSqC4RJeMXJd8N4IepBXEvXKMPkb5obTORYV2aU0fSxxKGOoi/Mr4OP xmapJTSSmDmTeAMnCz2XsgpaxXnPe39M0fbHZB703fMUcHOo6pXH8EEFPbyKa8ZCMrxK TunyQawhgPuFOH7daK7N/2GtxbGx0AR0lyhz6PNbP6E3vPvmxRWU3PvmmmFpEahiq5vp 1hJK8yCcLWMIKOUdud0/Ieb0jhC1tsalvAYo64mtX8FuZrWe3V5Fj5Mpw7BcVZtotgWs XIQOSZ7Y/19vnbp1B8CYecsTnVxlk3H3a/5eJN9Y675VWcwmad/tjsMSXsi+FwdBSf94 yA/A== X-Gm-Message-State: AOAM5330J5VpBWx+PhAdz2DBAZjn0/R9UfiMsujFGILzp6sgx4duo/yh 9tLxsQbcF2wAq+vUH9ADlcDKscvh+oTLsosINSASxOGqHyE= X-Google-Smtp-Source: ABdhPJz3gcGeHiqMfWeWncc6lpzJ+FvU1gu81SNjUIDwf7dzTvCwYOtwdvZ5TTMoRcPiSaXaXulmY3EWgPGsfzvBEsM= X-Received: by 2002:a65:4986:: with SMTP id r6mr8376509pgs.392.1619266365911; Sat, 24 Apr 2021 05:12:45 -0700 (PDT) In-Reply-To: <3dd2b977-d5c1-774e-e6d2-6afa42ad4340@mailbox.org> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:111160 Archived-At: --===============2288678574342027135== Content-Type: multipart/alternative; boundary="0000000000008977f505c0b6d4d8" --0000000000008977f505c0b6d4d8 Content-Type: text/plain; charset="UTF-8" On Sat, Apr 24, 2021 at 11:53 AM Jan U. Hasecke wrote: > > Hi all, > > how do you format your ConTeXt source files? > > I recently discovered prettier which reformats source files for > different markup > and programming languages such as html, markdown, json etc. > > There are some other tools around but I don't find anything for ConTeXt. > > Do you know of any prettifying tool? > > Is there a best practice for ConTeXt source files, at all? > > you should consider that in TeX (but also in Python, for example) spaces matter. Sometimes unwanted results are triggered by unseen blanks, and they are hard to discover. -- luigi --0000000000008977f505c0b6d4d8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sat, Apr 24, 2021 at 11:53 AM Jan = U. Hasecke <juh+ntg-con= text@mailbox.org> wrote:

Hi all,

how do you format your ConTeXt source files?

I recently discovered prettier which reformats source files for
different markup
and programming languages such as html, markdown, json etc.

There are some other tools around but I don't find anything for ConTeXt= .

Do you know of any prettifying tool?

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


you should consider that in TeX (but a= lso in Python, for example) spaces matter.
Sometimes unwanted results are triggered by unseen bla= nks, and they=C2=A0 are hard to discover.

--
luigi
--0000000000008977f505c0b6d4d8-- --===============2288678574342027135== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2288678574342027135==--