Re: [fossil-users] toc.tcl

2017-08-30 Thread David Mason
On 29 August 2017 at 23:55, Andy Goth wrote: > I'm curious how the Markdown formatter would know what language rules to > use for syntax highlighting, so surely there's more to the syntax than > bracketing ("fencing") the code with lines consisting entirely of "```". > I searched online and found

Re: [fossil-users] toc.tcl

2017-08-30 Thread Ron W
On Wed, Aug 30, 2017 at 7:05 AM, wrote: > > Date: Tue, 29 Aug 2017 22:55:56 -0500 > From: Andy Goth > To: fossil-users@lists.fossil-scm.org > Subject: Re: [fossil-users] toc.tcl > Message-ID: <56c8452e-5530-7c0d-c077-fa2b35375...@gmail.com> > Content-Type: text/p

Re: [fossil-users] toc.tcl

2017-08-29 Thread Andy Goth
On 08/29/17 21:18, Offray Vladimir Luna Cárdenas wrote: On 29/08/17 20:11, Andy Goth wrote: To keep this email relevant to Fossil, let me ask if there is any interest in adding "```" which appears to be intended to mark a code block without having to indent each line. I vote no because what we

Re: [fossil-users] toc.tcl

2017-08-29 Thread Offray Vladimir Luna Cárdenas
Hi, On 29/08/17 20:11, Andy Goth wrote: > On 08/27/17 21:14, dewey.hyl...@gmail.com wrote: >> my static site generator leverages blackfriday for markdown parsing, >> and pygment-colored code blocks are framed with "```" ... these blocks >> do not get ignored by your script, and the commented line

Re: [fossil-users] toc.tcl

2017-08-29 Thread dewey.hyl...@gmail.com
i'll certainly check this out. the difference between a block quote (indented) and code fencing (```) in blackfriday is that the latter gets syntax coloring. i understand that isn't related to fossil - i was just reporting. thanks again for your work. - On Aug 29, 2017, at 9:11 PM, andrew m

Re: [fossil-users] toc.tcl

2017-08-29 Thread Andy Goth
On 08/27/17 21:14, dewey.hyl...@gmail.com wrote: my static site generator leverages blackfriday for markdown parsing, and pygment-colored code blocks are framed with "```" ... these blocks do not get ignored by your script, and the commented lines inside the code blocks get meddled with. "```"

Re: [fossil-users] toc.tcl

2017-08-27 Thread dewey.hyl...@gmail.com
i've been playing with this quite a bit with some of my markdown sources, including those for one of my blogs. while it does exactly what i hoped it would do for everything i have tested in my fossil wikis, i did find one instance where it screws me up on my markdown-based blog. my static sit

Re: [fossil-users] toc.tcl

2017-08-21 Thread Andy Goth
It's online now. Also, here's the code: #!/usr/bin/env tclsh package require Tcl 8.6 # Link back to table of contents. set top {[top]} # Process each named file. foreach file $argv { # Read Markdown file. set chan [open $file] set data [chan read $chan] chan close $chan # C

Re: [fossil-users] toc.tcl

2017-08-21 Thread Johan Kuuse
On Sun, Aug 20, 2017 at 7:24 PM, Andy Goth wrote: > On 08/18/17 07:38, Dewey Hylton wrote: >> >> I predict this to be the best email I receive today. >> >> My first thought was "This is like paid support!" >> My second thought was "Wait ... paid support has *never* been this good >> ..." >> >> Tha

Re: [fossil-users] toc.tcl

2017-08-21 Thread Carlo Miron
On Mon, Aug 21, 2017 at 4:47 PM, jungle Boogie wrote: >> https://chiselapp.com/user/andy/repository/brush/file/doc/toc.tcl > > Any chance of using something like https://www.pastiebin.com to show the code? > chiselapp.com is offline, and it looks like that's been the case of a > few days now. Ju

Re: [fossil-users] toc.tcl

2017-08-21 Thread jungle Boogie
On 20 August 2017 at 10:24, Andy Goth wrote: > On 08/18/17 07:38, Dewey Hylton wrote: >> >> I predict this to be the best email I receive today. >> >> My first thought was "This is like paid support!" >> My second thought was "Wait ... paid support has *never* been this good >> ..." >> >> Thanks f

Re: [fossil-users] toc.tcl

2017-08-20 Thread Andy Goth
On 08/18/17 07:38, Dewey Hylton wrote: I predict this to be the best email I receive today. My first thought was "This is like paid support!" My second thought was "Wait ... paid support has *never* been this good ..." Thanks for your work! Since you seem to be really interested, have one mor

Re: [fossil-users] toc.tcl

2017-08-18 Thread Dewey Hylton
I predict this to be the best email I receive today. My first thought was "This is like paid support!" My second thought was "Wait ... paid support has *never* been this good ..." Thanks for your work! On Thu, Aug 17, 2017 at 10:10 PM Andy Goth wrote: > On 08/16/17 10:54, dewey.hyl...@gmail.co

Re: [fossil-users] toc.tcl

2017-08-17 Thread Andy Goth
On 08/16/17 10:54, dewey.hyl...@gmail.com wrote: I've been wishing for something similar to the TOC macro available in moinmoin, and this is fairly close. The only thing missing from my perspective is a link at each heading which points back to the top. I don't know jack about TCL, but perhaps i

Re: [fossil-users] toc.tcl

2017-08-16 Thread dewey.hyl...@gmail.com
> - On Aug 16, 2017, at 11:37 AM, Andy Goth andrew.m.g...@gmail.com wrote: > > First off, I'm sorry I've been so incredibly busy with work and business > travel, no time for Fossil development or even reading the mailing list. > The only issues I've been able to dink on lately are those that w

[fossil-users] toc.tcl

2017-08-16 Thread Andy Goth
First off, I'm sorry I've been so incredibly busy with work and business travel, no time for Fossil development or even reading the mailing list. The only issues I've been able to dink on lately are those that were stopping me from getting my work done. I'm trying to change jobs so I might ha