I thought it might be quasi-useful to start a thread where users can share their configuration files for their favorite editor/IDE, where that's possible, in case others want to try their settings for ideas, a change of pace, whatever.

To that end, I'm attaching my Komdo Edit .ksf file, which I've been using pretty much as is for quite some time now. (At least I don't think I've changed anything in the PHP syntax highlighting for quite a few months now.)

[ATTACH]4973[/ATTACH]

chalkboard_nogdog.ksf.zip

    Hey, question: I've been looking on the activestate faq and forums, but there doesn't seem to be an answer there: do you know how/where to configure what HTML tags komodo recognizes? For example, I want it to stop calling <main> an error, and I'm starting to mess around with Angular.js (which has user-defined element names). Any ideas?

      Looks like it uses Tidy for HTML validation, so you could create a tidy config file (search for "new tags"), define new tags, and specify that file in the Komodo Edit preferences window under the "syntax checking" option, selecting HTML for the language, then loading your config file.

        Wow ... off to see if NetBeans even has a config file.

        I do know it needs coffee first thing in the morning, though: [ATTACH]4975[/ATTACH]

        netbeans_nocoffee.png
          Weedpacket;11034903 wrote:

          Filtered coffee?

          Well ... something. What it's doing there is equivalent to, I dunno, summat like:

          ini_set(register_globals,0);
          
          file_put_contents("/var/log/php.error.log","Stop using register_globals!");

          :eek:

            5 days later
            traq;11034841 wrote:

            Hey, question: I've been looking on the activestate faq and forums, but there doesn't seem to be an answer there: do you know how/where to configure what HTML tags komodo recognizes? For example, I want it to stop calling <main> an error, and I'm starting to mess around with Angular.js (which has user-defined element names). Any ideas?

            I had that issue, too, but with other HTML5 tags (namely <header>). To get rid of that, you can set the default HTML document to HTML5 by following these steps:

            Edit > Preferences > Languages > HTML, and then use the drop down to choose HTML5. This will eliminate all those annoying squiggly lines in your PHP files.

            No help for user-defined tags, though, sorry.

              Bonesnap;11035137 wrote:

              I had that issue, too, but with other HTML5 tags (namely <header>). To get rid of that, you can set the default HTML document to HTML5 by following these steps:

              Edit > Preferences > Languages > HTML, and then use the drop down to choose HTML5. This will eliminate all those annoying squiggly lines in your PHP files.

              No help for user-defined tags, though, sorry.

              Already using HTML5. I'm on version 8.5.1, and it doesn't recognize <main>.

              NogDog's suggestion for a tidy config file worked perfectly, and was easier to do than I thought it would be. The only catch is that you have to define all the extra tags you want, not just the one that is missing. No squiggly lines, not even with angular!

                Write a Reply...