Community
    • Login

    COBOL syntax highlighting

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    7 Posts 3 Posters 16.1k Views 2 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.
    • Paul RichardsP Offline
      Paul Richards
      last edited by

      Can anybody explain how I can get COBOL syntax highlighting working.

      I’ve downloaded the cobol and cobol-ac files from the N++ library, tried putting each one in the plugins/API forlder and chosen COBOL as the language required. All I get is a straight black background and white foregound display of code.

      Thanks

      1 Reply Last reply Reply Quote 0
      • dailD Offline
        dail
        last edited by

        To get the COBOL syntax highlighting you don’t need to download anything, it is built in. Use the menu Language > C > COBOL.

        1 Reply Last reply Reply Quote 0
        • Paul RichardsP Offline
          Paul Richards
          last edited by

          I’ve already tried that [Language > C > COBOL] with no effect. And COBOL is not listed among the languages in [Settings > Style Configurator] so, as I said, I’m just left with white text on a black background.

          1 Reply Last reply Reply Quote 0
          • Jim DaileyJ Offline
            Jim Dailey
            last edited by

            Do you see syntax highlighting for any type of file? If not, in the Style Configurator, do you by chance have the Enable global foreground colour and Enable global background color checkboxes checked?

            1 Reply Last reply Reply Quote 0
            • Paul RichardsP Offline
              Paul Richards
              last edited by

              I see colour and highlighting for C and Objective-C but this appears to be controlled by the theme chosen i.e. Vibrant Ink. If, with a COBOL program open in N++, I choose C as the language I get colur and highlighting but it’s the same as for C and Objective-C.

              I don’t have the Enable Global foreground and background checkboxes checked. If I did I get yellow fg on orange bg.

              1 Reply Last reply Reply Quote 0
              • Jim DaileyJ Offline
                Jim Dailey
                last edited by

                I think the problem (or at least an indication that the problem exists) is that you don’t see COBOL under Settings–>Style Configurator, but I have no idea why it wouldn’t be there.

                Perhaps some helpful NPP user one can answer that???

                1 Reply Last reply Reply Quote 0
                • dailD Offline
                  dail
                  last edited by

                  by the theme chosen i.e. Vibrant Ink

                  Looks like Vibrant Ink doesn’t have any style configuration for COBOL. Only a few non-default themes have it for COBOL at all.

                  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
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors