• Login
Community
  • Login

COBOL syntax highlighting

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 3 Posters 14.8k 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.
  • P
    Paul Richards
    last edited by Oct 27, 2015, 10:47 PM

    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
    • D
      dail
      last edited by Oct 28, 2015, 12:28 PM

      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
      • P
        Paul Richards
        last edited by Oct 28, 2015, 10:17 PM

        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
        • J
          Jim Dailey
          last edited by Oct 28, 2015, 10:30 PM

          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
          • P
            Paul Richards
            last edited by Oct 28, 2015, 10:47 PM

            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
            • J
              Jim Dailey
              last edited by Oct 28, 2015, 11:08 PM

              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
              • D
                dail
                last edited by Oct 29, 2015, 1:13 PM

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