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
have works for me, but others may disagree.

I would vote yes. It's used in Pandoc's markdown and others and is
becoming a standard practices for documentation made with this popular
Markdown families.

dewey.hylton says "```" imbues syntax highlighting whereas indented
lines are left plain.  Fossil doesn't do any kind of syntax highlighting
at this point.  Is there any interest in having this feature?  I feel
syntax highlighting is both expected and bloat.  We would have to decide
which we prefer: being simple or having me-too features.

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 the answer to be: put the name of the syntax
highlight mode (i.e. the language) right after the first "```" on the
same line, for instance "```ruby".

I have updated my toc.tcl to allow for extra text to follow "```".  The
change is committed to chiselapp.  dewey.hylton, please review.

--
Andy Goth | <andrew.m.goth/at/gmail/dot/com>
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to