[inline code] Enable an inline code template

Discussions about the wiki documentation of FreeCAD and its translation.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [inline code] Enable an inline code template

Post by Kunda1 »

I tested it and it doesn't work. Will test again
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [inline code] Enable an inline code template

Post by Kunda1 »

kkremitzki wrote: Sun Jun 02, 2019 5:51 pm https://freecadweb.org/wiki/Special:Version says SyntaxHighlight version 2.0 is turned on.
Doesn't work: https://www.freecadweb.org/wiki/User_ta ... Cheatsheet

Code: Select all

<syntaxhighlight lang="Python" highlight="1,5-7" start='3' line>
def quickSort(arr):
    less = []
    pivotList = []
    more = []
    if len(arr) <= 1:
        return arr
</syntaxhighlight>
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: [inline code] Enable an inline code template

Post by vocx »

Kunda1 wrote: Mon Jun 03, 2019 12:41 am Doesn't work: https://www.freecadweb.org/wiki/User_ta ... Cheatsheet
According to the wiki documentation, the syntax highlighter needs the Pygments package. So, maybe if this is not available in the host, that's why the highlighter doesn't show anything. It "works" but doesn't actually do any coloring. Just a guess.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [inline code] Enable an inline code template

Post by Kunda1 »

vocx wrote: Fri Aug 16, 2019 2:10 am
Kunda1 wrote: Mon Jun 03, 2019 12:41 am Doesn't work: https://www.freecadweb.org/wiki/User_ta ... Cheatsheet
According to the wiki documentation, the syntax highlighter needs the Pygments package. So, maybe if this is not available in the host, that's why the highlighter doesn't show anything. It "works" but doesn't actually do any coloring. Just a guess.
yet another reason for us to move away from this host.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply