Community
    • Login

    Number Color

    Scheduled Pinned Locked Moved General Discussion
    settingsnumberhelpcolor
    2 Posts 2 Posters 5.4k Views
    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.
    • Captain GeorgeC
      Captain George
      last edited by

      Hello guys! I downloaded Notepad++ two days ago and numbers were colored with a color. Today I don’t know why, but the numbers are not colored anymore. I might changed sth in the settings without realizing it. Please help me find where is the setting that I can enable to make the numbers colored. Thanks!

      1 Reply Last reply Reply Quote 0
      • gerdb42G
        gerdb42
        last edited by

        NPP supports a feature called “syntax coloring” which applies different styles to elements of the text, numbers being one of them. However, the styles to be applied are different for different needs. The style (or “language”) to be applied to the current file is determined by its extension, e.g. .js are treated as “Javascript” .html as “HTML” an so on.

        So if you had numbers colored you probably had opened a file which NPP recognized as some sort of colorable text or you had selected some entry from the “Language” menu.

        However, by default, if you start a new text or open an unrecognized file the style that gets applied is “Normal Text” which does no highlighting at all.

        So if you want numbers to be highlighted, associate your files with a language setting and select a default language for new files.

        You also may define your own language to be applied to specific files. I for example use a custom definition for .log-files which highlights keywords that may indicate unusual events such as “Error”, “Failure” or “Exception”.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors