Forum Replies Created

Viewing 25 posts - 26 through 50 (of 353 total)
  • Author
    Posts
  • in reply to: Arrows #21432
    Stefan
    Participant

    The arrows you mention are probably the End-Of-Line (EOL) symbols for CRLF and LF respectively.
    Picture: https://www.emeditor.com/text-editor-features/coding/multiple-selection-editing/
     
    You can enable the visibility via “View > Marks > Returns” … and “CR and LF with different Marks”.
     
    There should be only one type of that EOL-markers in one file: DOS/Windows (CRLF) -or- Unix (LF).
    To change that EOL setting, utilizing “File > Save as…” and chose the wanted line endings from the drop-down menu in that dialog.
     
     
    Stefan

    Stefan
    Participant

    Thanks LTT, both of your solutions works! Well done. ( Double JS-and-RegEx escaping tricked me again ;-) )

    Stefan
    Participant

    Sorry, but with “document.selection.Replace” I get a mess like you have experienced, even replace ‘a’ by ‘X’ didn’t work for the whole example text.
     

    nLines = document.GetLines();
    var count=1;
    for(L=1;L<nLines;L++){
    	document.selection.SelectLine();
    	//document.selection.Replace("\[1!#\d+\]","[1!#"+count+"]", eeReplaceSelOnly | eeReplaceAll | eeFindReplaceRegExp);
    	document.selection.Replace("a","X", eeReplaceSelOnly | eeReplaceAll );
     	count++;
     	document.selection.LineDown();
    }

     
     
    Highly probable there is a trick I don’t get. Oh, and I use 15.7.0./ 32-bit portable here.
     
     
     

    Stefan
    Participant

    the string after equal sign(=). I have to modify them one by one to make them be consecutive.

    FROM:
    partnr=[1!#10]
    productgroup=[1!#2]
    productsubgroup=[1!#3]
    description1=”zh_CN@”+[1!#15]+”;”+”en_US@”+[1!#16]+”;”
    note=”zh_CN@”+[1!#17]+”;”+”en_US@”+[1!#18]+”;”
    assemblyposition count=[1!#4]
    parentvariant=[1!#5]
    partnr=[1!#6]
    pos=[1!#7]
      
      
    TO:
    partnr=[1!#1]
    productgroup=[1!#2]
    productsubgroup=[1!#3]
    partnr=[1!#4]
    productgroup=[1!#5]
    productsubgroup=[1!#6]
    description1=”zh_CN@”+[1!#15]+”;”+”en_US@”+[1!#16]+”;”
    note=”zh_CN@”+[1!#17]+”;”+”en_US@”+[1!#18]+”;”
    assemblyposition count=[1!#7]
    parentvariant=[1!#8]
    partnr=[1!#9]
    pos=[1!#10]
      
      
    Use for example:

    if( document.selection.IsEmpty ) {document.selection.SelectAll();}
    sSel = document.selection.text; //alert(sSel);
    
    aLines = sSel.split("\r\n");
    
    aOut="";
    iCount=1;
    
    for (var i=0,x=aLines.length;i<x;i++) {
    	if (aLines[i].match(/=\[1!#\d+\]/)){
    		aOut += aLines[i].replace(/=\[1!#\d+\]/,'=[1!#'+iCount+']') + "\r\n";
    		iCount++;
    	}
    	else {
    		aOut += aLines[i] + "\r\n";
    	}
    };
    
    alert(aOut);
    //document.selection.text = aOut;

     
      
      
      
    HTH? ;-)

    Stefan
    Participant

    EmEditor v16.2.0 beta 2 ; September 30, 2016
    New General Features
    The Find Extract … number of lines above and below the matched lines, and specify the separator.
    The Extract All button was added to the Replace dialog box.

    Beta 2 shows a separator line between separated blocks after filtered,

    EmEditor v16.2.0 released! ; October 5, 2016
    New General Features
    The Filter toolbar allows you to specify additional lines to display before and after matched lines.

     

     

    Thank you, great additions and works great, good work Yutaka.

     
    Hint:
    I know I can use “Find” and “Extract” for that feature too, and that is totally fine,
    but I think the “Filter toolbar” misses that separator feature(*) for the “Extract All” button?
    (*) like the Extract button in the Find dialog.

    Thank you for making EmEditor.

     

    in reply to: Adding info about replaced number #21144
    Stefan
    Participant

    show number of changed phrases

    EmEditor shows that info at the status bar (menu ‘ View > Status Bar ‘ )
     
    BTW, to customize what is shown at the status bar, see menu ‘ Tools > Customize… > [Status]’

     

    in reply to: Filter lines – option to show lines before and after finded #21090
    Stefan
    Participant

    EmEditor v16.2.0 beta 1, September 26, 2016

    New General Features

    The Filter toolbar allows you to specify additional lines to display before and after matched lines.
    The Number of Additional Visual Lines Above Matched Lines and Number of Additional Visual Lines Below Matched Lines drop-down list boxes were added to the Filter toolbar.

    Link to announcement page >> https://www.emeditor.com/emeditor-beta/emeditor-v16-2-0-beta-1/
     
    Works fine here. Even is filtered line was at TOF or EOF
    and so there were no additional lines to show as I had set in ‘Additional Visual Lines’

     
    Idea: maybe you can add an option to insert a line delimiter between extracted line-blocks?

    Like:

    Filter ‘error’ ; Additional lines before:1 ; Additional lines after: 2 ; Block Delimiter:[ ~~~ ]
    Line error
    Line
    Line
    ~~~
    Line
    Line error
    Line
    Line
    ~~~
    Line
    Line error
    .
    .
     

    in reply to: Possible to set a "Marker" (Highlight Word) from within a macro? #21046
    Stefan
    Participant

    Thank you very much for the feedback.
     
    That way works, but I miss a way to adjust the added marker, to highlight all spellings and ‘whole word only’.
    Maybe I am better use the ‘Find’ command only, to highlight the ‘MySearchStr’ string.
     

     
    MY USAGE EXAMPLE:
    -search code here to find lines containing ‘MySearchStr’-
    -then I extract that lines incl. surrounding lines to another document:
    editor.NewFile()
    document.writeln(resultText)
    document.selection.Find MySearchStr, eeFindPrevious
    document.selection.SelectWord
    editor.ExecuteCommandByID 4560

     
    .

    Stefan
    Participant

    Hi LifeTimer,

    EmEditor utilize the ‘Windows Script Host’, which in turn utilize JScript 5.7 feature set.
     
    Even as WSH says it’s 5.8

    jsV = ScriptEngineMajorVersion() +"."+ ScriptEngineMinorVersion();
    alert(jsV); // 5.8

     –

    See http://stackoverflow.com/questions/5497967/jscript-version-availability-for-wsh-installations

    Note Starting with JScript 5.8, by default,
    the JScript scripting engine supports the language feature set as it existed in version 5.7.
    This is to maintain compatibility with the earlier versions of the engine.

    From MSDN: http://msdn.microsoft.com/en-us/library/s4esdbwz%28v=vs.84%29.aspx

    JScript 5.8 introduced the following features: JSON object, JSON.parse method,
    JSON.stringify method, toJSON method, defineProperty method, getOwnPropertyDescriptor method.

    And further see: http://stackoverflow.com/questions/19445189/cscript-jscript-json
    and perhaps: https://en.wikipedia.org/wiki/Windows_Script_Host
    https://msdn.microsoft.com/en-us/library/s4esdbwz%28v=vs.84%29.aspx

     

    in reply to: CSV Editing – DELETE columns #20581
    Stefan
    Participant

    In CSV-mode, right click the column header

    and choose “Select column,,,,,,”,

    next press the DEL-key on your keyboard.

     

    in reply to: Is there an option to format code? #20574
    Stefan
    Participant

    Hi there,

    In EmEditor you can do such things by utilizing external command-line tools,
    for an HTML Tidy example see e.g. https://www.emeditor.com/forums/topic/xml-without-line-breaks/
    Tidy reads HTML, XHTML and XML files and writes cleaned up markup.
     
    Also you can g00gle e.g. for “Artistic Style” (http://astyle.sourceforge.net/)
    A Free, Fast, and Small Automatic Formatter for C, C++, C++/CLI, Objective‑C, C#, and Java Source Code
     
    There are many of them.
    Or search here the Library if there is a script already.

     
    If you need help on Tool setup, just ask.

     
    HTH?

    in reply to: One click code layouting #20573
    Stefan
    Participant

    Hi there,

    PSPad just utilize Tidy.exe
     
    You can do the same with EmEditor. see e.g. https://www.emeditor.com/forums/topic/xml-without-line-breaks/
     
     
    Also you can g00gle for “Artistic Style”

     

    HTH?

    in reply to: Replace spaces with one tab mark #20555
    Stefan
    Participant

    To replace “one colon followed by one-or-more spaces”
    by “one colon followed by one tab character”
    use Regular Expression Search&Replace

    Find: :\s+
    Repl: :\t
    [X] Use Regular Expressions
     

     
    HTH?
     
    Example:

    FROM:
    Device ID: . . . . . . . 0
    Interface: . . . . . . . RAID
    Device Capacity: . . . . 476937 MB
    Serial Number: . . . . . WD-WCC2EET06341
    Model Number: . . . . . .WDC WD5000AAKX-75U6AA0
    Firmware Revision: . . . 19.01H19
    ( dots represent spaces here )
    
    TO:
    Device ID:->	0
    Interface:->	RAID
    Device Capacity:->	476937 MB
    Serial Number:->	WD-WCC2EET06341
    Model Number:->	WDC WD5000AAKX-75U6AA0
    Firmware Revision:->	19.01H19
    ( '->' represents a tab char here )

     
     

    in reply to: EmEditor v15.6.0 beta 4 #20484
    Stefan
    Participant

    Fine!

    “modeless Quick Launch (Ctrl+Q) PLUS ‘Commands’ mode (Ctrl+Shift+C) PLUS typing [mac ]”
    is a nice way to quickly execute one or even a few macros on individual test selections.

    Fine!

    in reply to: EmEditor v15.6.0 beta 1 #20483
    Stefan
    Participant

    Hello Yutaka,

    here are my observation on testing the beta3

    – Jump now works even with disabled “Keep This Window Open”. Good work.

    – I find this sort option useful, thanks for implementing.

    – It do not work on *.jsee files, only if I save with *.JS extension,
    Likewise possible the same for *.vbee?

    – Works only on saved files and on files with the right extensions.

    – The ‘symbol list’ is not updated on saving the document,
    I have to re-open, or at least (temporarily) change the sort order.
    Ahh, now! …there is a ‘Refresh’ context menu entry! Fine!

    – Two or more functions with same name are listed only once. But I think all should be listed? No?

    ———–

    Idea:

    I would find it very useful to see also
    the function parameter to look up quickly the need syntax:

    function.Backup(strSource, strTarget, intOption)
    function.isElement(object)
    function.merge(array, args)
    function.argumentNames()
    function.delay(timeout)

    I tried already with ctags options, but had no success:

    – Enable Projects plug-in,
    – right-click into Projects pane
    – launch Tools >Properties for Current Solution Template, (this is named ‘default’ for me)
    (or should I go “Tools > Solution Templates” and chose ‘Visual Studio’ ?)

    – open Symbols tab
    – modify “Additional Parameters to Ctags (advanced option)” field

    -V
    -e –c-kinds=+defgpstux -R
    http://stackoverflow.com/questions/3655743/when-using-exuberant-ctags-what-options-to-you-use

    ———–
    Ohh, already a beta 4!?! … ;-) Fine! Thanks! I go taking a look………..

    in reply to: EmEditor v15.6.0 beta 1 #20467
    Stefan
    Participant

    Hi Yutaka,

    thanks for the beta 2! ….still an improvement!

     
    But I also get this crash with beta2, if “Keep This Window Open” is NOT selected.

    I tried with a *.js file “Prototype JavaScript framework, version 1.6.1” on Win7/64 with EE-v15.6.0 beta 2-portable/32
    – open the file
    – open Quick Launch Ctrl+Q
    – do NOT opt for “Keep This Window Open”
    – enter ‘@’ sign
    – right click > Jump (or double click)
    – EmEditor is crashing unexpectedly. We apologize for any inconveniences.

     
    if “Keep This Window Open” -IS- selected, the Jump works!       (good observed, FuzzyBear :-) )

     
    BTW: discussion:
    the symbol list is sorted by you,…. I don’t know yet if this is fine or not….
    … because the order is different from real order in file, and so the Jump is irritation (on my first tests)

     

     
    Stefan

    in reply to: EmEditor v15.6.0 beta 1 #20462
    Stefan
    Participant

    Quick test of the new features….

    The Quick Launch window allows you to enter ‘@’ to show the symbol list

    That works for me only if I execute ‘SymbolList.jsee’ for this document right before.
    It does nothing if I just open ‘Quick Launch window’ and enter a ‘@’ sign.

    And then, ….
    in ‘Quick Launch window’ I get only the list of functions,
    but no functionality, like scroll the clicked function into view or like that.
    So what is the sense of this particular feature? Sorry, I don’t get it ;-)

     
     
    And, BTW, possible bug report:
    If I close the ‘Quick Launch window’, sometimes also the EmEditor main windows loses the focus and gets hidden behind another window.
    This was also with the last beta. I have not tried to get the cause of this behavior yet.

     

    Thank you for making EmEditor.

    in reply to: EmEditor v15.6.0 beta 1 #20461
    Stefan
    Participant

    Thanks for the new release and for the example macros.

    in reply to: "Tools > Quick Launch" and eeCommon.ini > KeymapSearchHist #20460
    Stefan
    Participant

    Dear Yutaka,

    The search histories in the Quick Launch window before you upgrade to v15.5.1 will not be restored.

    Yes, this is fine.

    However, you should be able to add new search terms.

    Ahhhh, now at least I get it:

    the history is only stored if you press the Enter-key
    after you finished typing in your search term. ( of course :-( )

    Since it is not necessarily to press enter,
    as it searches on-the-fly, I never pressed enter before.

    Sorry for the confusion!

    The portable versions are not designed for speed.

    Since you are all about speed, and EmEditor is the fastest Text Editor in the world,
    I am sure, sooner or later you will be able to improve that part too.

    That is why you should use the installer version.

    All my tools are portable and that is the way I like it ;-)

    So thank you for making and maintaining a portable EmEditor version!

    .

    in reply to: "Tools > Quick Launch" and eeCommon.ini > KeymapSearchHist #20449
    Stefan
    Participant

    Hi Yutaka,
    better with 15.5.1, no more empty lines.
    But only just the last search is stored,
    not a list of last ten or so, as the big drop-down list implies.
    Is this correct? Only one term kept in History?

    – – –
    Another issue, just FYI:

    “Quick Launch” on portable mode is slow on search (takes ~ 5 seconds to display the results)

    if I use my old eeCommon.ini:
    eeCommon.ini |   890.812 byte |  30.10.2015 08:28 -a–

    If I rename this INI and let EmEditor create a new one, the search is quick as expected:
    eeCommon.ini-my . . . . . . . . . . . . . . . .| 890.812 byte | 30.10.2015 08:28 -a–
    eeCommon.ini-fresh-created-by-EE. . |. 21.439 byte | 30.10.2015 08:26 -a–

     
    Tested with:
    emed32_15.5.1_portable.zip | 5.467.636 | 30.10.2015 08:12 -a–
    Microsoft Windows 7 Enterprise; 6.1.7601 Service Pack 1 Build 7601
    Intel64 ~3301 MHz; RAM 8GB; Available 5.6GB; de;Deutsch (Deutschland)

     
    Thank you.
    今後もよろしくお願い申し上げます。

    in reply to: Problem with Start window #20447
    Stefan
    Participant

    Hi KamilZ,

    I can disable ‘Start Window’.

    But on opening EmEditor with an new Untitled document.
    or on opening another new Untitled document in running EmEditor,
    I can press the Arrow-down key on my keyboard to let the ‘Start Window’ appear.

     

    in reply to: Problem with Start window #20442
    Stefan
    Participant

    Hi KamilZ,

    a workaround would be to nevertheless disable the (automatically appearance of the) “Start Window”
    (Tools > Customize… > [Window] > [Customize Start Window…] >> [_] Always show…… )

    and use the Arrow-Down key instead to open it on your own on (empty / non-dirty) Untitled documents.

    Perhaps that would be something for you and solve your problem with the Tray Icon?

    in reply to: "Tools > Quick Launch" and eeCommon.ini > KeymapSearchHist #20439
    Stefan
    Participant

    Hmm, no more editing of my post allowed, so I continue here:
    I had to add tabs into the empty lines in my above post, to make the forum software keep them.

    Stefan
    Participant

    v15.5.0 ,

    Works fine, both default ’80’ value and also adding ‘MaxNameUntitled=143’ to eeCommon.ini under ‘[Common]’ section.

     
    Thank you for making EmEditor.

    in reply to: wrap up function #20436
    Stefan
    Participant

    Hi netsking,
    no, I can’t imagine what happens here.
     
    I am not an expert, but I would close EmEditor and rename the Registry key of EmEditor
    HKEY_CURRENT_USER\SOFTWARE\EmSoft\EmEditor v3\
    for example to HKEY_CURRENT_USER\SOFTWARE\EmSoft-problem\EmEditor v3\
    to disable it for the moment, launch EmEditor again to see if there was any culprit in your settings.
     
    If that brings you nowhere, delete the new created key and rename the old key back by removing that ‘-problem‘ string again.
     

    netsking wrote:

    Before if I select “word wrap”, the new file will be opened
    as wrap characters/wrap window each time.
    … but now, it opens as no wrap. don’t know the reason.

    Worked fine on: EE ver14 64-bit version / Installed version
    Got Problem since: ver 15.2, 64-bit / Installed version (noticed it, maybe even earlier)
    Operation system: Win7 64-bit Pro

    Tools > Properties All Configuration > [General] > “Wrap by” shows nothing.
    After chosen “wrap by special characters”, open a new file, EE will dispay as what I selected.
    However, the chosen property won’t be saved because closed and re-opened EE, the display became no wrap again.
    If I chang other selections, all of them can be saved when closed and re-opened.

     

    HTH?           ( Best try with the brand new 15.5.0 release, see the Blog )
     
     

Viewing 25 posts - 26 through 50 (of 353 total)