From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18211 Path: news.gmane.org!.POSTED!not-for-mail From: Bill Janssen Newsgroups: gmane.text.pandoc Subject: Re: Pygments 'console' style Date: Thu, 21 Sep 2017 15:41:43 -0700 (PDT) Message-ID: References: <05541691-dbb5-48b4-ac2a-a0f986fcb25e@googlegroups.com> <20170921222732.GB73159@protagoras.berkeley.edu> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1662_310636016.1506033703978" X-Trace: blaine.gmane.org 1506095422 24322 195.159.176.226 (22 Sep 2017 15:50:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 22 Sep 2017 15:50:22 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDN7HW5PVUJRBPHCSTHAKGQE47ADIAY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Sep 22 17:50:16 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk0-f56.google.com ([209.85.213.56]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvQDW-0005tP-6O for gtp-pandoc-discuss@m.gmane.org; Fri, 22 Sep 2017 17:50:15 +0200 Original-Received: by mail-vk0-f56.google.com with SMTP id e3sf701569vkd.17 for ; Fri, 22 Sep 2017 08:50:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=rBLukjJ4PvQmbG5By/BQIfi8YNg5rZNirx9FCeKeBZ4=; b=qjV+WF1n2MoxNXHCi4UxGKck8tQk0bjsWCeYEw9qHeh1+BlmfUx4XtVkB4KjCJVCRv yNx41gMuGnVMkTMXHmoEW0VK8jPHNKaG64r3HMdMJvcBU/Klrc+SoS0UFLv4gEB2bnm1 tL8DTETiBRuaWvEMv37kNzqg8f99UzvZYpD5kk9knTCm5r6lseXmppLwqLzlKFTwJbSc kT4EHlxXXYAShB4nKVBsw7YNQ2IfE/YrJPULYZjOLF6yIJSELw8Wb44cOnp2HEv9SL+t uJxOVMilHYSmDdlOuNbGT2A2Dy85+70krziY1oOXlYM9bUN3WBXtLIhVx7wXnEpYe0c+ /6TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=rBLukjJ4PvQmbG5By/BQIfi8YNg5rZNirx9FCeKeBZ4=; b=Dvc4wGYTbSJrEl07RjfSo7m2Zg2M8FAVRzt2Pu9aCLK6Mj6DZPcUNFQIUfxw5Hobpr Xu9i9weaeOUgIZu42FR7Va1B9FmE7mkwF5Qn3Mjg63MIKMQTTTB06gficG4ya31YQGC/ OIGeDz2qlKRAsslHoQ6+Svoext+9Em7VBRquOaHehAzV9TMQ4xlfEv7h3WnTOpSWMQc5 uG3BkH+5E0iQ3u3vChfD1YOYgSB61P0Mgr6U8tU1KkC161Pc8b7fJiTbfq9gt5B6hHQc xc6zr1FEVlIZMuGNMVhNMdF1Mqb6kEbKYI4+QcY7ogSHkisV0egwA4wcf1R3Bu8EhtEQ LPNw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AHPjjUhOKco/rKlqh/QeZjRonZSOQq2jpkoFZJ0XHQP9Le5hF8+ORvuG E9H/EVnLINGxlAOuauYetOQ= X-Google-Smtp-Source: AOwi7QD3ai7dOUA+xsX0u3RVjx45IkRyEowNp5ROydxpJbPZrsz7gLjPZf4mI3vPDWlPa7uYHsPFHQ== X-Received: by 10.31.64.136 with SMTP id n130mr243993vka.27.1506095421440; Fri, 22 Sep 2017 08:50:21 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.13.248.66 with SMTP id i63ls107348ywf.37.gmail; Fri, 22 Sep 2017 08:50:20 -0700 (PDT) X-Received: by 10.129.78.137 with SMTP id c131mr7426354ywb.145.1506095420262; Fri, 22 Sep 2017 08:50:20 -0700 (PDT) Original-Received: by 10.202.230.140 with SMTP id d134msoih; Thu, 21 Sep 2017 15:41:45 -0700 (PDT) X-Received: by 10.157.27.35 with SMTP id l32mr16497otl.0.1506033704826; Thu, 21 Sep 2017 15:41:44 -0700 (PDT) In-Reply-To: <20170921222732.GB73159-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org> X-Original-Sender: Bill.Janssen-Re5JQEeQqe8AvxtiuMwx3w@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:18211 Archived-At: ------=_Part_1662_310636016.1506033703978 Content-Type: multipart/alternative; boundary="----=_Part_1663_407958593.1506033704020" ------=_Part_1663_407958593.1506033704020 Content-Type: text/plain; charset="UTF-8" Sorry, I should have been more prolix. My documents have lots of examples of people interacting with a read-eval-print loop in a terminal session. Things like $ date Thu Sep 21 15:29:07 PDT 2017 $ The ideal console mode (or "repl" or "typescript", two other names for this kind of text) does a good job of identifying user inputs versus program outputs -- I'm not sure how well the Pygments lexer does at this. The inputs are usually boldfaced, the outputs normal. Handles '#' and '%' prompts, stuff before the prompt, etc. 'bash', on the other hand, is just highlighting for the bash language, as far as I know. I haven't found documentation on how to add support for a new language highlighter; is there a link? Bill On Thursday, September 21, 2017 at 3:27:40 PM UTC-7, John MacFarlane wrote: > > Pandoc doesn't actually use pygments at all. > It has a style named 'pygments' because it imitates > pygments' default style, but the highlighting is all > done by a Haskell library, skylighting. > > It uses definitions from KDE > https://cgit.kde.org/syntax-highlighting.git/tree/data/syntax > > I don't see 'console' -- there is 'bash', which might work > for your purposes -- I'm not sure what 'console' does. > > +++ Bill Janssen [Sep 21 17 15:15 ]: > > Pandoc doesn't seem to recognize the 'console' language tag supported > > by Pygments. Am I just missing it? If not, is there some way to add > > it? > > Bill > > > > -- > > 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 [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > > To post to this group, send email to > > [2]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > > To view this discussion on the web visit > > [3] > https://groups.google.com/d/msgid/pandoc-discuss/05541691-dbb5-48b4- > > ac2a-a0f986fcb25e%40googlegroups.com. > > For more options, visit [4]https://groups.google.com/d/optout. > > > >References > > > > 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > 2. mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > 3. > https://groups.google.com/d/msgid/pandoc-discuss/05541691-dbb5-48b4-ac2a-a0f986fcb25e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > > 4. https://groups.google.com/d/optout > > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ad8bd961-c9ad-4380-838d-4b8068a930a2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_1663_407958593.1506033704020 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry, I should have been more prolix.=C2=A0 My documents = have lots of examples of people interacting with a read-eval-print loop in = a terminal session.=C2=A0 Things like

$ date
Thu Sep 21 15:29:07 PDT 2017
$


The ideal console m= ode (or "repl" or "typescript", two other names for thi= s kind of text) does a good job of identifying user inputs versus program o= utputs -- I'm not sure how well the Pygments lexer does at this.=C2=A0 = The inputs are usually boldfaced, the outputs normal.=C2=A0 Handles '#&= #39; and '%' prompts, stuff before the prompt, etc.

'bas= h', on the other hand, is just highlighting for the bash language, as f= ar as I know.

I haven't found documentation on how to add suppor= t for a new language highlighter; is there a link?

Bill

On Th= ursday, September 21, 2017 at 3:27:40 PM UTC-7, John MacFarlane wrote:Pandoc doesn't actually use pyg= ments at all.
It has a style named 'pygments' because it imitates
pygments' default style, but the highlighting is all
done by a Haskell library, skylighting.

It uses definitions from KDE
https://cgit.kde.org/syntax-hi= ghlighting.git/tree/data/syntax

I don't see 'console' -- there is 'bash', which mig= ht work
for your purposes -- I'm not sure what 'console' does.

+++ Bill Janssen [Sep 21 17 15:15 ]:
> =C2=A0 Pandoc doesn't seem to recognize the 'console' = language tag supported
> =C2=A0 by Pygments. =C2=A0Am I just missing it? =C2=A0If not, is t= here some way to add
> =C2=A0 it?
> =C2=A0 Bill
>
> =C2=A0 --
> =C2=A0 You received this message because you are subscribed to the= Google
> =C2=A0 Groups "pandoc-discuss" group.
> =C2=A0 To unsubscribe from this group and stop receiving emails fr= om it, send
> =C2=A0 an email to [1]pandoc-discus...@googlegroups.com.
> =C2=A0 To post to this group, send email to
> =C2=A0 [2]pandoc-...@googlegroups.com.
> =C2=A0 To view this discussion on the web visit
> =C2=A0 [3]http= s://groups.google.com/d/msgid/pandoc-discuss/05541691-dbb5-48b4-<= /a>
> =C2=A0 ac2a-a0f986fcb25e%
40googlegroups.com.
> =C2=A0 For more options, visit [4]https:= //groups.google.com/d/optout.
>
>References
>
> =C2=A0 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> =C2=A0 2. mailto:pandoc-...@googlegroups.com
> =C2=A0 3. https://groups.google.com/d/msgid/pandoc-discuss/05541691-d= bb5-48b4-ac2a-a0f986fcb25e@googlegroups.com?utm_medium=3Demail&am= p;utm_source=3Dfooter
> =C2=A0 4. https://groups.google.com/d/optout


--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/ad8bd961-c9ad-4380-838d-4b8068a930a2%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_1663_407958593.1506033704020-- ------=_Part_1662_310636016.1506033703978--