Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to make comments in code stand out

    Help wanted · · · – – – · · ·
    comments format text editing python
    2
    2
    56
    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.
    • Cyndi Roether
      Cyndi Roether last edited by

      Hi -

      I am new to Notepad++ and am using it to edit scripts in Python, which I am also new to.

      I know I can place comments pretty much anywhere bracketed by ##'s

      Is there a way to make them a different color so that they stand out from the code?

      Thank You,
      Cyndi

      Alan Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        Alan Kilborn @Cyndi Roether last edited by Alan Kilborn

        @Cyndi-Roether

        The key is to make your file a Python file and then things (comments included) will “stand out”, example:

        e0a23532-387e-46ae-b5fa-64cd45bf26b3-image.png

        See where it says “Python file” on the status bar?

        You can make this appear by saving your file with a name that ends in .py, or by choosing “Python” on the Language menu.

        Also, a Python comment involves no “bracketing”. A # appearing on a line will cause anything following that character (and still on that same line) to be a comment.

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors