From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18212 Path: news.gmane.org!.POSTED!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Pygments 'console' style Date: Fri, 22 Sep 2017 10:37:18 -0700 Message-ID: <20170922173718.GA30123@Johns-MacBook-Pro.local> 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: text/plain; charset="UTF-8"; format=flowed X-Trace: blaine.gmane.org 1506101855 28222 195.159.176.226 (22 Sep 2017 17:37:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 22 Sep 2017 17:37:35 +0000 (UTC) User-Agent: Mutt/1.6.2 (2016-07-01) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBXMUSXHAKGQE7F3RRYY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Sep 22 19:37:30 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk0-f62.google.com ([209.85.213.62]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvRtG-0006zK-UX for gtp-pandoc-discuss@m.gmane.org; Fri, 22 Sep 2017 19:37:27 +0200 Original-Received: by mail-vk0-f62.google.com with SMTP id g68sf861614vki.15 for ; Fri, 22 Sep 2017 10:37:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1506101854; cv=pass; d=google.com; s=arc-20160816; b=JPdknoxcNdmG8gjvOL8Dfwcp777/nHVau3c2Uj3/UlbcM6izm/SYOsqaMkthjjEzXy 7xubGDI27AlSY1BcR9n56j9EOGH+C28gS15FcQXYGp/efEcbXbOTcVGJJ+Cs1zVGKLf8 +lLDfMg0gD51SXEqSb1ANTARNvVWFd+pyeAUu5SMCJ6CGMynxfHfH4Cv/zLbb0B+IVQ4 ThBQ906SgtRQ6LTKPxhhjHE7wfQM5tZwoxaq+v3w12vNieqJwYL4kvVC9zT4gtJnPqdX 8B7SxILv+rSlrk1Dpz7gm6uvG+US1NP8JGFKo/8GpchteNSC353ZmgR168r83cmEu93V +Myg== 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:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :date:from:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=Mj+0X68kRoFrS+SxvgO7Ryd9WcPQqqLx3mFeR6Qae7A=; b=WSTRRVorBbg1wmyvADn2bkS9KiUq1pH/Vb6x4eXXdIZLyXrHNv/MYa1KgY7Gl5A0Ky 4xEFqPRmawdCqnDU9FKjWREpOJYbtzbqLuKKuVc6tC35wUe5FrMhb+1gMYiGlHixzhZh jHgBHwjKuZF5o+U59RFcRyZRXYNhmLaxlqWyD8UL+2vW+REtLufJxgSQiz0Gqrl/Oe8v t5DlEqIdj4cx3f+HDPvZLOlLQj57I+ofIRmGiilFFyGQ9olK7lYaeXtwqDeDzg66YnJb 75LpvWKOCofuzd1sMn0jbw9B28YqLULVk91HlH0olG7swbP4rpchZmVwT1R3iOH/PYmb ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=PCg/Vdkt; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::236 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:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent: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=Mj+0X68kRoFrS+SxvgO7Ryd9WcPQqqLx3mFeR6Qae7A=; b=o1EYHFKR7yQA5hrrRV/UY8BWYxywK7w5WkQ+K2IDtzYhHLDQtT+1gr9aqKv7EeUiGy ih0cvoDqC/YaEVuFyInK8CH9f2TZa9TIQOl77dMOx9qzKRXHRpMlSQV5FPaicOWFYhAA 5fn5Exjhn3bBahWunDqm/CwhB4YobW5HNiXuwVXNUMuofMYbbir+DH+nnGbESf8h/4jO +XXZaNDBDQ3vKX7x734Jw1qKegVxx0eTOuoyIkciOZ6bP01dk3cI8SBJIDTPb59Bt9yf nkNkzCQNYqPeRIl2w5RdwjuCThf76T1rbPMJQG3JMKgRa8kweqTPq2quw/aEWgkOfqvk 9QXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :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=Mj+0X68kRoFrS+SxvgO7Ryd9WcPQqqLx3mFeR6Qae7A=; b=BsL/ji0m/iS/QqRFcWiOorRTHoNum7SRr5M/aBrFgBZP8OKi07Uy3JGQFFr3tK8/3k 45Etima03KooWut9VmJa6NL84L91ln3LUkk+7cKaSLxzS36qtL7qeCOGGlTC9kZZcS2b 7AYbLRGfOb8Vy8cMEeX8nqJlJMFQoUI++9rLl7zgoTNiX5cuxjNcjPpULYsVbjizeuRh waUzPYAuiFGiZ2ckBM4vY4iFujraYpSb49prbA2ev1HGYuY4+NSHL3Xr5916lF1s9Rzd f9XCSZTzNF6JwzVna9p5rFr3Rs2LVF+I62A/9Mb851fK1Q7gMN29zOjJ01OuYuagUCeE Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AHPjjUisGthjYYJD8l6gbPnAx/yom00Dw5bUgdIUSC3SKBmAeekv7e1O 3LEqNGl3j4it7DfynoLh1AY= X-Google-Smtp-Source: AOwi7QDOOFkBlcX1OrH/ahPLBU5wVavykPYIgmAiucgso008EEXZKuHXrxWUlWiwJCgBOyMq+aDjoQ== X-Received: by 10.31.33.146 with SMTP id h140mr240319vkh.12.1506101854341; Fri, 22 Sep 2017 10:37:34 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.37.160.3 with SMTP id x3ls1142225ybh.7.gmail; Fri, 22 Sep 2017 10:37:33 -0700 (PDT) X-Received: by 10.129.178.129 with SMTP id q123mr5797172ywh.59.1506101853594; Fri, 22 Sep 2017 10:37:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506101853; cv=none; d=google.com; s=arc-20160816; b=yMuP5xuPiI4LIS9sRpCwU3vfPhDKFVBCSGegwIyswludZ6BsxXMH5de+kCPcctePF+ FsFHI8s6N8vFd3n6Wb5C1GOroUkpHzvs3Qvg9cs/2Kqp3kiDpitqFkBpZmqEukUAdkry zZSuJO3LsFboThV6VOD6Ktk97kxlAEmczxOZlCHta2Gq1tkZAadOSnXwH/Tet8Y3uyF7 wk70VksyCeD0nF/rLUbkiYJWURLWzpg8jWpRI9dcjqe4e2AZOoGzNV8pYoaYn4mM2xzO I6m+BxFqzwy+ji8oaw3kGU3YeNRpge0LsDP1jTIy06T1ert0YXC/kvaGk+d8IrTcz8/d 0ZhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:to:date:from:dkim-signature :arc-authentication-results; bh=aTThO6tu6b6cADGbsGcCb1CF6j6pvob8dNonyS/c6Mk=; b=JYUKwiHqwc9/WOqwl9NeohsR7eO8M/nnyKsG5MFaJd7UZe60/yrGSmE2eb+2O4IRLE 6ys0gDKP+nD3uyW1pOdvSEkPHPoM7nTJZvimXW2TpOhIddAReRnGA+pgoL2w/LVJZOld aAiRAiLxU1osylP9pXZxcXzSALQ9lGEWcbZfXzzVJn2v6FMeV+DvIB9/9W1osBiE4KF+ dBJOn77J4b2EbRvyngp4CVxeK07erDABM2bsgFlzrkzdfS5ZvY1WHmC/u8lscyH1g5bR DXAoWQL2yABYANMz2ZtoezPflPU8Y9fODPeCIG4qySKv99VsrNVrMIikgiUF3c46nptW 8ilA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=PCg/Vdkt; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::236 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg0-x236.google.com (mail-pg0-x236.google.com. [2607:f8b0:400e:c05::236]) by gmr-mx.google.com with ESMTPS id u184si29403pfb.17.2017.09.22.10.37.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Sep 2017 10:37:33 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::236 as permitted sender) client-ip=2607:f8b0:400e:c05::236; Original-Received: by mail-pg0-x236.google.com with SMTP id 7so936325pgd.13 for ; Fri, 22 Sep 2017 10:37:33 -0700 (PDT) X-Received: by 10.98.16.15 with SMTP id y15mr9815813pfi.192.1506101852751; Fri, 22 Sep 2017 10:37:32 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id p70sm455900pfk.130.2017.09.22.10.37.29 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Sep 2017 10:37:30 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 1C6E8A1C5; Fri, 22 Sep 2017 13:37:19 -0400 (EDT) Content-Disposition: inline In-Reply-To: X-PGP-Key: http://johnmacfarlane.net/jgm.asc 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=PCg/Vdkt; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::236 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:18212 Archived-At: New versions of pandoc use https://github.com/jgm/skylighting There are some instructions (and links to relevant KDE documentation) there. The dev version includes an option to load an xml syntax definition dynamically, but this isn't yet in the released versions. +++ Bill Janssen [Sep 21 17 15:41 ]: > 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 > [1]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][2]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To post to this group, send email to > > [2][3]pandoc-...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > > [3][4]https://groups.google.com/d/msgid/pandoc-discuss/ > 05541691-dbb5-48b4- > > ac2a-a0f986fcb25e%[5]40googlegroups.com. > > For more options, visit [4][6]https://groups.google.com/ > d/optout. > > > >References > > > > 1. mailto:[7]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > 2. mailto:[8]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > 3. [9]https://groups.google.com/d/msgid/pandoc-discuss/05541691- > dbb5-48b4-ac2a-a0f986fcb25e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium= > email&utm_source=footer > > 4. [10]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 [11]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to > [12]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > [13]https://groups.google.com/d/msgid/pandoc-discuss/ad8bd961-c9ad-4380 > -838d-4b8068a930a2%40googlegroups.com. > For more options, visit [14]https://groups.google.com/d/optout. > >References > > 1. https://cgit.kde.org/syntax-highlighting.git/tree/data/syntax > 2. javascript:/ > 3. javascript:/ > 4. https://groups.google.com/d/msgid/pandoc-discuss/05541691-dbb5-48b4- > 5. http://40googlegroups.com/ > 6. https://groups.google.com/d/optout > 7. javascript:/ > 8. javascript:/ > 9. https://groups.google.com/d/msgid/pandoc-discuss/05541691-dbb5-48b4-ac2a-a0f986fcb25e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > 10. https://groups.google.com/d/optout > 11. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 12. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 13. https://groups.google.com/d/msgid/pandoc-discuss/ad8bd961-c9ad-4380-838d-4b8068a930a2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > 14. https://groups.google.com/d/optout