Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Register
    • Login

    Syntax Highligting in Markdown Code Blocks?

    General Talk
    2
    6
    2.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dskeithbuckD
      dskeithbuck
      last edited by

      Hi,

      Is it possible to get language-specific syntax highlighting in the markdown code blocks? Something like what GitHub does? If not, what's the best way to submit suggestions for the forum?
      Thanks,

      Donovan

      1 Reply Last reply Reply Quote 0
      • r_giganteR
        r_gigante
        last edited by

        Hi Donovan, thanks for providing the feedback and I confirm we're working on it.

        I'll notify through post as soon as it will be available.

        Cheers, Riccardo

        1 Reply Last reply Reply Quote 0
        • dskeithbuckD
          dskeithbuck
          last edited by

          Great news, thanks!

          1 Reply Last reply Reply Quote 0
          • r_giganteR
            r_gigante
            last edited by

            Hi Donovan,

                the syntax highlighting should work now.

            void ThisIsATest()
            {
               // comment it out!
               cout << "This is an highlighted world!";
            }
            

            Cheers, Riccardo

            1 Reply Last reply Reply Quote 1
            • dskeithbuckD
              dskeithbuck
              last edited by

              Awesome! It works with

              python:

              print "Thank you!"
              

              and C++:

              cout << "For adding syntax highlighting!";
              
              1 Reply Last reply Reply Quote 0
              • r_giganteR
                r_gigante
                last edited by r_gigante

                For everybody interested in syntax highlighting, nodeBB is pretty smart in recognizing the language you're using by simply checking your code snippet, but in case you really want to hard-code the language set simply use the following line when starting a code snippet:

                ```<language>
                

                where <language> can be anything like python or c++

                Cheers, Riccardo

                1 Reply Last reply Reply Quote 0
                • ferdinandF ferdinand moved this topic from News & Information on
                • First post
                  Last post