- Posted by
- Well if we check with the UE help it says: The scripting engine supports the core functionality of JavaScript 1.7. Further information on JavaScript may be found on the associated Mozilla site ( http://developer.mozilla.org/en/docs/JavaScript ). Please could you tell us which 1.7 functionality(-ies)...Posted in Scripts
-   Topics
-   Views
- jorrasdk
Aug 07, 2008
- Ok, wacreekm, sit back and prepare for a lengthy script. My approach has been to use the native XML support of Javascript. Others might have experimented with regular expressions, and indeed it might be possible, but I chose the XML approach. The steps of the script is basically: Setup enviroment, d...Posted in Scripts
-   Topics
-   Views
- jorrasdk
Aug 07, 2008
- It's a combination of two things: var [ , fromPos,toPos] = ... Is a so called destructuring assignment - new in JavaScript 1.7 - see the chapter on Destructuring assignment at Mozilla.org ... The second thing ... = reParms.exec(foundParmDefs); The exec method is executing ther regular expression reP...Posted in Scripts
-   Topics
-   Views
- jorrasdk
Aug 07, 2008
- If i add "<\" to Javascript Unindent Strings in wordfile, it still doesn't unindent automatically. Hmm, strange. The minute I added </ to unindent /L9"JavaScript" JSCRIPT_LANG ... ... /Indent Strings = "{" "else" /Unindent Strings = "}" "</" It started to unindent when I enter </script>. (I'm not g...Posted in Syntax Highlighting
-   Topics
-   Views
- jorrasdk
Jul 28, 2008
- Here is why: When you enter <script> UE in fact change the syntax highlighting from HTML to Javascript. Notice the status bar at the bottom of the screen. It will change from HTML to Javascript and it will change back to HTML AFTER </script> when Javascript is then "terminated". And since </ is not ...Posted in Syntax Highlighting
-   Topics
-   Views
- jorrasdk
Jul 28, 2008
- And my vote too for the feature request. I'm also tired of this escaping \ in regexp when using UE. You'll see me use this trick in the scripts I post in this forum to ease the copy and pasting of Regexp's: UltraEdit.perlReOn(); // Assign a helper prototype function for the RegExp object: RegExp.pro...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- jorrasdk
Jun 24, 2008
- My "poor workaround" consists of these steps: - open a Telnet console, connecting to the remote Linux system - type the grep command from the command line in the telnet console (using grep options -nH = filename and line number). - Copy all output from the console into an empty UE document - run a U...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- jorrasdk
Jun 24, 2008
- Here is something to get started on. I hope the script comments explain what is being done. If not then ask in this thread. // Define working environment for this file. UltraEdit.perlReOn(); UltraEdit.insertMode(); UltraEdit.columnModeOff(); // Helper function as UE does not recognize start and endi...Posted in Scripts
-   Topics
-   Views
- jorrasdk
Jun 16, 2008
- Here is my short version of "find lines with pattern and paste into new document" as a script - I hope the comments in the code are enough explanation: /* Help prototype function to remove starting and ending / as UE does not recognize these for regexp */ RegExp.prototype.toUEregexp = function() { r...Posted in Scripts
-   Topics
-   Views
- jorrasdk
Jun 10, 2008