From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23276 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: =?utf-8?Q?Isn=E2=80=99t?= there a plain text reader? Why? Date: Mon, 19 Aug 2019 23:24:04 -0700 Message-ID: References: <255f893b-1048-4de9-aaeb-e9778187e701@googlegroups.com> <4be8dffb-2e8c-3ba3-d584-a06928a48af7@usa.net> <08494ac8-209d-dfa6-43b6-f19034f2bef7@usa.net> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="179572"; mail-complaints-to="usenet@blaine.gmane.org" To: Rudi C , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBEVE53VAKGQESDKIHIQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 20 08:24:24 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qk1-f191.google.com ([209.85.222.191]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hzxZ6-000kVG-6d for gtp-pandoc-discuss@m.gmane.org; Tue, 20 Aug 2019 08:24:20 +0200 Original-Received: by mail-qk1-f191.google.com with SMTP id a197sf5900694qkg.12 for ; Mon, 19 Aug 2019 23:24:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1566282259; cv=pass; d=google.com; s=arc-20160816; b=VvI+iHfb/qPCrOOdxkdBb+E6OM91n/GKBrB1Qqjr8o3RTZGaOeswfayLW7e0jzCsL3 NsuGgdAZwxc3GEOuhFnzVQvUDwbiKTud/OiRhpVUkJBgLavH5qGsQYkFxN3vXLhP1Z7x mFIbb8pUFK7KD3M+hynnITk841UglbJWZMKCVRTXyDeeVWlrYkpfNYSWdx8aY9zatOz8 WfaFuaBPpvFAf3PEWrbMPkJqUUrSa5oYd2YHQMQY7P8MFgJOIUvWLP3EisMWxHFXaLu7 JFxp2hQwqrLyPS2Zvsx5+3VNv09qZ2FKohPJ5g3gW8tOPFYRiIAX5IFNHu9a8HdVK7GK aglg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=Uiw3BCzHFUdPSN4NIAp9JdREGqvAXwtLgfqaj6Z+qZA=; b=l39BZbslZHNule26TOz2HZxxWs0t9dLVuO5LuxeUevdQntfePv0/GsAd8Nn1B5hrRm iT4EwVFONoarrteSqgwGP9DC0mMt1yRt5az1jp1N0cYQq4tUSiVLEkoeUvoDIvVrZPLm g8i6GoOxDTRj55Vzk2cim1j2R+YcqJJ3BBf5YNVn/zogWDo+KUQwx4rV+Q7bzBkldGKL cs3IxuoxOmGqq33jE/jGXEIHLJOisCfnfCtjDBlw4zg85CtfOoRrDkSwxhBiEbu2qPcU NGIhmPfU67D/zJlomBZgYmsJ7jKBowgYIAG1j56cv2jQcB7KDtOB8Tm9XGAHzoKMhade eKtw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=TLl89HJr; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::435 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=Uiw3BCzHFUdPSN4NIAp9JdREGqvAXwtLgfqaj6Z+qZA=; b=TEkhw2tXYS3WSVtMq37Qbkqy7L4kASo2TGSMpBiYDolHF4WMiLGia8t518a2IKXhp6 HSaKOV3Lp+VHNmhHNSdpvrrKcgsX09UnhAsmPRcIzgwaQ4hTn0BhCEIBCA7WfTE1t6S/ luyPdxA/XKh9baxSbAdFqnv/QW34cSLfcBzLzUMS7wmXVrHISfN+huVEQP8OD6AxsO9S aVfrgLPlDoaZSwsx2dN8y746bdpH7zXqwUCgbe+UrvIdo5d0GALfyghQJItZP7uI021G pFvyxpQVok5GCa/e9Y+ugwEhCbYx2CQ1joF54ppPqM96aQuW+3CvYUiGfWrvwF/DK/eN tYVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=Uiw3BCzHFUdPSN4NIAp9JdREGqvAXwtLgfqaj6Z+qZA=; b=XM74bJ8Gzbs7R4IjpCJhoaSSgkaebYhpA4dNe9/mGp4osvxh/d7z8sTppP2Upsk05C xzqP4yFqfCW2CtAEyp2c0qt9Jp2LMi0dEgvomQzNpN46aC4ZMO1mO4/zHXhOscAmFPf5 +oDw7idWCFo4ncMu5Tyh8B0R1It+19ZUjDYMo2JHrdp/enjYYgDtFByi6iq7UJgjRZk/ JhxvAISrERz4GcAp149zJaGw+QMhMF3SZ4A2A9/P3HZstxQ1O/G05XsyHJjevc3FlEt8 0ts3roR4/hxDnie8DsAESTj/aY9CDHgYcmphBDd0Zfv9O6WWg+ekyCs6cvl7fugZzE1f Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAUjjqM2pPFcB2IDUUbKXclIX4sgVHqiDR6uLw+egPzyYsKK+Wso 6NCSvwFtdGcm93Gzw6D48ro= X-Google-Smtp-Source: APXvYqwmFAS+TFWRBVloai+x9ia7/TYALZ4FcCuAad3il+OaCFHYgf7C/WjdNZfY4/MR6s+4qh5sAg== X-Received: by 2002:a0c:aede:: with SMTP id n30mr13228211qvd.152.1566282258918; Mon, 19 Aug 2019 23:24:18 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:620a:15f6:: with SMTP id p22ls5418739qkm.8.gmail; Mon, 19 Aug 2019 23:24:17 -0700 (PDT) X-Received: by 2002:ae9:f804:: with SMTP id x4mr24158493qkh.178.1566282257830; Mon, 19 Aug 2019 23:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566282257; cv=none; d=google.com; s=arc-20160816; b=Z71Mpoy0Y95PdkuYfFHK/3wE+8MYkaC1+srohdeXsb5jBhdVh/qXx2TnH6fJqkrtBj 53EPUutpEnAPmmp6h3qDzwIWfojWXFKuDbRtOVW/J7vZb1C6/KyP2rE3i1e2+91qvw7h kZCNA/G2apNzsEc14aVi9bCR8dejvRnPV70fC4YNCORq4GayJ8+3GQb9Dfbb05cd19E3 FvcW8NhuJMggqDW41oerKaGoLBZqvxFJWLW0iwoFRno+8QaL+YJai+JtAYGAAaVGt/M9 /MjIsoPH/ClP2FmBEtcrTxzGfHkxENI4nKkVpjDsjNhQmddyJesZtLjjEjAZphXtPJ3v YhoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=/dUfMebv3FovtZ29XcKUPFBx+5aIuS+FiepPbmNt9PI=; b=GNPZ5/S8AQ9Rgo+Hvd527j5W+zfHryJ8VATOofzKalaHjz+siHkUC4mDcQL5P7O4wK T45adHwoDLAbyeQ3DSs+okmZDqf3pjsiNMEFcJqbJKuIPB3h3FrFJ+rB6pZvdrzdohUS ENZmatACwLJXeG2LPdqz7wmlZD+FmCGPDI1gOpwrptkdPI0SkZW9gnJE96V0KbHavEGX nHZ5s3YQk0ruoHHW1aqmJh8wHEP/BoOVQF5Pn/KE3PUXzYCm8sNVgJfxLlIiVLlurUxZ YH4I+aVzQJVyZ0dK4xLMQLh4rKKJtCkLfGalTq7F95d5bdheHNp8NdUrfT3yI1pFQJzm iq/A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=TLl89HJr; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::435 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com. [2607:f8b0:4864:20::435]) by gmr-mx.google.com with ESMTPS id r68si638123qkb.1.2019.08.19.23.24.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Aug 2019 23:24:17 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::435 as permitted sender) client-ip=2607:f8b0:4864:20::435; Original-Received: by mail-pf1-x435.google.com with SMTP id w16so2735102pfn.7 for ; Mon, 19 Aug 2019 23:24:17 -0700 (PDT) X-Received: by 2002:a63:2b0c:: with SMTP id r12mr23203120pgr.206.1566282256816; Mon, 19 Aug 2019 23:24:16 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id a23sm18533654pfo.80.2019.08.19.23.24.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2019 23:24:16 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 25A89A18E; Tue, 20 Aug 2019 02:24:05 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=TLl89HJr; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::435 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:23276 Archived-At: Yes, generally you can use either the canonical language name (as listed by --list-highlight-languages) or standard file extensions (like py). If you look at the xml syntax descriptions here https://github.com/jgm/skylighting/tree/master/skylighting-core/xml you'll see (on the language element) the attribute "extensions"; this is where the accepted extensions come from. Rudi C writes: > Thank you! > I imagine there are aliases defined for `pandoc > --list-highlight-languages`? Since specifying `py` seemed to work just as > well as `python`, if I'm remembering correctly. If so, where should I edi= t > in the sources ti add more aliases? (And send those edits as PRs)(Like, > `el` could be an alias for `commonlisp` ...) > > On Fri, Aug 16, 2019 at 7:02 PM Daniel Staal wrote: > >> On 8/16/19 2:07 AM, Rudi C wrote: >> > I currently use a script to create a markdown with this structure: >> > >> > # filename >> > >> > ```file-extension >> > file-content >> > ``` >> > >> > # ... >> > >> > Does your solution have advantages over this? >> > Btw, is there a table of supported things I can put after the triple `= s? >> > Putting =E2=80=9Cel=E2=80=9D, for example, did not activate EmacsLisp = highlighting. >> >> No real advantages over this - it's basically an alternate syntax for >> the same thing. >> >> There's no reference table, as it depends on the compile - however you >> can get the list for the current install with: >> >> `pandoc --list-highlight-languages` >> >> > Ps: By plain text, I mean text that always wraps, and keeps its source >> > indentation. The kind of I thing I=E2=80=99ll see when I use `less` on= a file. >> >> The point I was trying to make is that 'plain text' isn't a very >> well-defined term, or a structured input language. Pandoc deals with >> structured input, and has several input formats that could reasonably >> handle random text - but unstructured text is a bit out of Pandoc's scop= e. >> >> You're not dealing with unstructured text however - you're working with >> source code, and again Pandoc can handle source code in several formats >> - Markdown being the best supported and documented. >> >> Daniel T. Staal >> >> -- >> --------------------------------------------------------------- >> This email copyright the author. Unless otherwise noted, you >> are expressly allowed to retransmit, quote, or otherwise use >> the contents for non-commercial purposes. This copyright will >> expire 5 years after the author's death, or in 30 years, >> whichever is longer, unless such a period is in excess of >> local copyright law. >> --------------------------------------------------------------- >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "pandoc-discuss" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/pandoc-discuss/DSRfQkWBlFE/unsubscribe= . >> To unsubscribe from this group and all its topics, send an email to >> pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/08494ac8-209d-dfa6-43b6= -f19034f2bef7%40usa.net >> . >> > > --=20 > You received this message because you are subscribed to the Google Groups= "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/CAE9z9A3zRg%2B9_v26kMR-9fb5HHykwQKDabiufWKSdHcNmMW0ag%40ma= il.gmail.com. --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/m2mug4iccb.fsf%40johnmacfarlane.net.