Announcement

Collapse
No announcement yet.

JavaScript /EFS Editor with stronger syntax checking

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • JavaScript /EFS Editor with stronger syntax checking

    Is there such an editor out there that would check for spelling of variables so typos can be caught? As you know the EFS editor would declare No Syntax Errors even though there are typos in variable names ...?

  • #2
    z11, declaring variables on the fly is one of JavaScripts strengths and weaknesses.

    I too would like an editor that does tighter syntax checking since I have also run into scripts not working due to a typo in a variable name. At the very least it should warn you that a variable wasn't declared with a var statement.

    I would suggest you try a google search of javascript editors and see if there's anything out there that does what you want. Then let us know what you found.

    You can also submit requests for new features to eSignal.

    Steve

    Comment


    • #3
      z11,

      FWIW, there are several out there that I have ran across that can be used. I use Scite, and have a link to that and another (jEdit) in my fileshare in the text editor folder. I also use UltraEdit periodically as it has a powerful version comparison feature that comes in quite handy.

      I have found Scite to be quite nice, especially if you turn the autocomplete feature on. Provided you have already declared the variable name once in the efs, the autocomplete feature usually brings up the correct variable name as you are typing, significantly reducing errors due to typo's or mispellings. It also has a 'highlight all' and several other powererful features that help to reduce syntax errors.

      Having said that, I do not believe you will find anything out there that will do as good as the syntax check command in the eSignal editor. While I have identified the majority of the efs key words for Scite to highlight (which helps), whenever I have problems with syntax, I usually select the entire efs and paste a copy into the eSignal editor. Then I will select the syntax check command, which usually identifies my mistake.

      Comment


      • #4
        Steve - thank you for the notes...I actually installed Scite a couple of years ago upon your recommendation and actually found that eSignal's editor is simpler to use ... with the exception of this typo situation...

        Yes, to declare var's on the fly in an assignment statement is ok (sloppy albeit) but not recognizing a typo, say, in a conditional statement. should not be a "feature" of the language....

        oh well, just have to be careful with my fat fingers...

        Comment


        • #5
          z11,

          I figured you have been around long enough to have seen me comment on this a couple of times, one of the reasons I mentioned the other editors.

          Interestingly, I have seen over the years that a person's favorite editor is typically what they get used to. In my case, I have become accustomed to Scite when coding with eSignal . I know others that like their original C++ editor, some that have used UltraEdit and some that prefer the eSignal editor (which I was told a while back was based on the Scite editor) - because of the syntax checking.

          btw, I know all about fat fingers, I have a few myself.

          Comment

          Working...
          X