On 29 August 2017 at 23:55, Andy Goth <[email protected]> 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 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".
>
Discord and github handle a keyword after the "```" on the first line. So:
```smalltalk
foo: anObject
^ anObject + 5
```
would format the 2 lines in Smalltalk.
../Dave
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users