Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    How do I mark code in a post to this forum?

    Scheduled Pinned Locked Moved Discussion
    codeembedanswer
    4 Posts 3 Posters 974 Views 3 Watching
    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.
    • S Offline
      smbunn
      last edited by

      I recently submitted a comment in one of the group topics and realised I had no idea how this editor works. I wanted to have a code snippet. The "insert code block" icon is greyed out in the editor, so i can submit code as a picture or text but cannot mark it as code. I wrote my comment and in the preview a small part of my code showed up as code, on a black background with key words coloured! what!

      So it can be done, but I have no idea why one single 'if' loop in my code decide to display as code but the rest was text.

      Also when I hit reply me message goes to the top, just below my original post, not below the last reply in the topic. Why?

      robert-hhR L 2 Replies Last reply Reply Quote 1
      • robert-hhR Offline
        robert-hh @smbunn
        last edited by

        @smbunn Code blocks can be enclosed in three backquotes ( ```), a single marked element in single backquotes (`).

        1 Reply Last reply Reply Quote 1
        • L Offline
          livius @smbunn
          last edited by

          @smbunn
          when you edit your post on right top corner, there is the link with help "Compose?"
          http://commonmark.org/help/

          think about people first, then computers

          1 Reply Last reply Reply Quote 0
          • S Offline
            smbunn
            last edited by

            Thanks, sorry I did not see the "compose" with question mark inside the box. The documentation is pretty clear. I am a member of so many forums and they all have different tools. Wonder if there will be a shake up at some stage to use something like the wiki toolset which does most thinks.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom