Forum Replies Created

Viewing 25 posts - 2,801 through 2,825 (of 3,682 total)
  • Author
    Posts
  • Yutaka Emura
    Keymaster

    stevec wrote:
    I have recently started using emeditor and love it loads.

    However I have been having problems opening files using the right click menu (context menu) in Windows XP.

    I cright click on a text file in Windows XP and select the item “EmEditor” from the context menu and nothing happens.

    If I run from a desktop or start menu shortcut it runs fine.
    I am running Windows XP SP3 and I am running EmEditor Professional version 8.00

    Can anyone please help?

    Thanks

    Steve

    Did you try restarting Windows? If you still have this issue, go to the Shortcut tab of the Customize dialog box, click “More Shortcuts…” button, and uncheck “Add a shortcut to the Context Menu on Explorer” check box. Click OK, and OK. Try again the same except check “Add a shortcut to the Context Menu on Explorer” this time. Click OK and OK. Now do you see the difference?

    Yutaka Emura
    Keymaster

    dreftymac wrote:
    Sometimes it is useful to be able to create persistent variables in a macro that can be seen by other macros. As far as I know, if the user of emeditor wants to pass variables around between different macros, this can be done already in the following ways:

    1) use the windows clipboard;
    2) use the windows registry;
    3) use a temporary text file;

    One problem with all of these methods is they can be a bit slow and cumbersome to use on a regular basis. Is it possible to create a macro that can directly read and write to temporary registers such as is possible with Vim or Emacs?

    No, there are no global variables, unfortunately. I would suggest writing a sub-function to handle global variables in one of the above ways.

    Yutaka Emura
    Keymaster

    Amelia wrote:
    The notify is “Some characters cannot be converted using the specified encoding. The file will be corrupted if you continue editing and save the file.”
    8.00 do not display it and the file can’t be opened.
    7.02 and below are OK.

    Please email me a sample file at [email protected], and write the details of conditions so I can reproduce your issue. Thank you!

    in reply to: Highlight words and lines from macro #6676
    Yutaka Emura
    Keymaster

    masha wrote:
    I do not need to hightlight the numbers itself, i want to highlihg the lines.
    having [10,12,20,34,41] I want to highligt tenth, twelfth, twentieth, thirtyfourth and fourtyfirst LINES, but not the numbers.
    I know that the could be regexp like (10|12|20|34|41), but there is no the numbers in the text.

    In this case, you cannot change the color of particular line numbers. Howerver you can toggle bookmarks on particualr lines if you would like. Bookmarks can be set by using SetBookmark Method (Selection Object) if you write a macro.

    in reply to: Tab close button X to be on tab itself #6675
    Yutaka Emura
    Keymaster

    maxim2004 wrote:
    Current 8.00 and earlier versions have tab close button X right-aligned which is very inconvenient on big monitors.
    Please enable tab close button on currently active tab itself (somewhat like Opera9.6)

    On the Tab tab of the Customize dialog box, make sure “On Active Tab” or “On Each Tab” is selected in the Close Button drop-down list.

    in reply to: Highlight words and lines from macro #6668
    Yutaka Emura
    Keymaster

    masha wrote:
    No, it is not what I want.
    I have array of integers in my macro, let’s say [10,12,20,34,41].
    And I want to have different look of those lines in the editor window.
    For example, if the numbers could be lines with compiler warnings.
    it is weird to click each line in output window to find it in editor window (altought sometimes it is useful too). Much better to have the lines highlihted in the editor window.

    Also, some tools (notably Visual C++ run with /analyze command line switch) may output a few lines numbers for each error or warning, thus make unuseful location the errors by the tag regexp.

    May by the solution is to write a plugin to hook the points where emeditor calls WinAPI to draw the text. But it seems to be a quite complex hack.

    OK. In Configuration Properties, select Highlight (1) tab, and then you can enter a regular expression to highlight certain numbers. For instance, ^[0-9]+? will select first numbers at each line.

    in reply to: two-keystroke keyboard combinations #6665
    Yutaka Emura
    Keymaster

    dreftymac wrote:
    How many different ways can a user set up a two-keystroke keyboard mapping?

    I know in another TextEditor, it was possible to set them up using

    ctrl+Q … (then some other key)

    ctrl+semicolon (then some other key)

    does EmEditor support this? If yes, for which keys?

    Thanks for any info.

    Two-keystroke keyboard mappings are allowed up to 8 different first keys using User Menu (1) to User Menu (8). CTRL + K is already pre-defined to User Menu (1) by default. You can define other User Menus on the Help menu > Keyboard Map.

    For each User Menu, you can define as meny shortcuts as you want (of course, limited to physical keys). To customize the user menus and set keyboard shortcuts, go to Customize Menus on the Tools menu, select User Menu (1)-(8), and then customize the menu by using & to specify the second shortcut key.

    I hope this information will help, and I will add this information to our FAQ section.

    in reply to: Customizable configuration order #6664
    Yutaka Emura
    Keymaster

    wdscxsj wrote:
    It’s very convenient that EmEditor supports multiple file-type configurations. It’ll be even better if the configuration order can be customized.

    I use Python quite often. Whenever I create a new (unsaved) file and switch to the Python configuration, I have to press F11 and a series of P’s. Although I don’t use Pascal, Perl, etc. much, I want to keep their configurations. So if Python can appear as my first P-language, many keypresses will be saved.

    It’s the same case for the “New File” list.

    Thank you.

    Thanks for your comments! You cannot change the order — it is an alphabetical order. However, you can rename the configuration name. For instance, you can rename “Pascal” to “_Pascal” so it will become the last item of the list. I hope this technique will help.

    in reply to: Highlight words and lines from macro #6663
    Yutaka Emura
    Keymaster

    masha wrote:
    Is it possible to highight lines having their numbers ?

    For example, my macro runs Lint or compiler, parses its output and got an array of line numbers.
    Then I want to see them underlined (or with red background) in editor.

    If you want to highlght line numbers so they become mouse-clickable, you need to write a single-line JavaScript macro:

    document.HighlightTag = true;

    and run this macro when you need it.

    You might need to adjust the Tag Format in the Edit tab of Customize dialog box (on Tools menu).

    in reply to: Python macros #6662
    Yutaka Emura
    Keymaster

    masha wrote:
    Seems there is a bug related to Config object
    I can enumerate windows and documents in Python but not the collections of the Config object.
    The latest ActivePython 2.6.0.0 has the problem as well.

    #language=”Python”

    Window.OutputBar.Visible = True
    debug = Window.OutputBar.writeln

    # ok
    for x in Window.shell.windows: debug(x); debug(x.Caption)

    # ok
    for x in Window.editor.Documents: debug(x); debug(x.FullName)

    # crash
    for x in Window.document.Config.Keyboard.List: debug(str(x))

    # crash
    for x in Window.document.Config.Highlight.List: debug(x)

    This is a sensitive area because the list is very large. It might cause out of memory situations.
    Did you try Versin 7 and was it OK?
    Also, you might want to try something like:


    list = Window.document.Config.Highlight.List
    for x in list: debug(x)

    in reply to: Are there onKeyPress, onMouseClick or somethike like those ? #6661
    Yutaka Emura
    Keymaster

    masha wrote:
    Hello.

    How to hook all keyboard and mouse input for a given window ?
    Can I write a macro which will handle Ctrl-click or Shift-click on the document window and then will do something with the clicked word?

    You can find some events by going to the Macros menu, Customize, check Runs at Events, and then click the Events button. But that is all we have. For mouse clicks, you will need to write a plug-in.

    in reply to: Change EmEditor registered user #6660
    Yutaka Emura
    Keymaster

    saitodisse wrote:
    Hello!
    I’ve uninstalled previous version but the program still registered.
    How can I re-install EmEditor with another user?

    Deleting both or either of the following keys will remove your old user information:

    HKEY_CURRENT_USERSoftwareEmSoftRegist

    HKEY_LOCAL_MACHINESoftwareEmSoftRegist

    Thank you!

    in reply to: Function parameter's tooltip. #6646
    Yutaka Emura
    Keymaster

    andenix wrote:
    I think its quite a natural thing to expect for a code editor to help with function parameters. Most of libraries/includes have tonns of functions with parameters impossible to remember. (I wonder why none of fancy code editors like Ultraedit have those).
    I know EmEditor has this for VS solution files. I wonder if its possible to extend for any orbitary language.
    Thanks.

    The Parameter Information tooltip should work on non-VS solutoin files.

    in reply to: Insert a page break #6644
    Yutaka Emura
    Keymaster

    letmein7 wrote:
    I have a duplex printer and would like to see ‘insert a page break’ feature in your program.

    thank you.

    It there is a character code 000CH (^L) at the beginning or the end of a line, a page break will occur when you print. You can insert this character on the Edit menu, Advanced > Insert Special Character.

    in reply to: slow when saving files #6636
    Yutaka Emura
    Keymaster

    briank07 wrote:
    Hi,

    Recently I’ve encountered a problem where, when I save a file, it takes a few seconds and the cursor disappears during that period. I was using EmEditor 7 and had the problem, and now I’m using emeditor 8 and am still having the problem. Other text editors work fine…is there any setting that might be causing this?

    Thanks for the help,

    Brian

    Are you dealing with a large file? How large is it? Are you saving a file to a network folder? Any other details that might reproduce this issue?

    Yutaka Emura
    Keymaster

    dreftymac wrote:
    It seems that EmEditor has a unique way of redrawing window contents that is a little different from other GUI-based editors I have used on windows. One side-effect of this difference is an apparent “jittery” appearance to the text when editing moderate-sized files.

    Question: Is there a user-configurable way to reduce the “jittery” appearance of the EmEditor window for fast typing in large files?

    To understand what I am talking about, try these steps:
    1) open a large file in emeditor
    2) type random letters as fast as you can into the edit area
    3) notice how some lines of the text will instantaneously “disappear” and then come back again, it happens so fast you can barely notice it, but when the file is larger, it becomes easier to notice
    4) notice the vertical scrollbar area, keep typing random characters rapidly and, if you look closely, you might see a small barely-visible scrollbar traversing up and down the height of the scrollbar area as you type characters.

    These side-effects are barely noticeable for smaller files and when the user types slowly. However, for larger files or faster typing speeds, the effects become more and more noticeable. It is tolerable, but a tad distracting, and it would be nice to reduce this or eliminate it.

    Thanks for reporting this issue. Are you using the latest version — Version 8?

    If you are using plug-ins, especially Outline plug-in, you might want to turn off those plug-ins and try again. Thanks!

    in reply to: can a macro know how it was invoked or recieve arguments? #6628
    Yutaka Emura
    Keymaster

    dreftymac wrote:
    Question:
    1) Is it possible to determine from within a macro what keyboard combination was used to trigger the macro?

    2) If no to number 1 above, is there a way to pass an argument into a macro that is tied to a keyboard combination under “My Macros”? The idea is to be able to create a single macro that responds differently depending on what keyboard combo was used to trigger it.

    If the answer is no to all of the above, no problem, I can make multiple macros — one for each key combination, just thought I would ask.

    Cheers

    Sorry, no to both. You can make multiple macros.

    Yutaka Emura
    Keymaster

    dreftymac wrote:
    Suppose I have emeditor using the INI files and that the location of the files is as follows:

    C:ProgramsEmEditoreeCommon.ini
    C:ProgramsEmEditoreeConfig.ini
    C:ProgramsEmEditoreeLM.ini
    C:ProgramsEmEditoreePlugins.ini
    C:ProgramsEmEditoreeUseIni.ini

    Question: Is there a way to keep these files in a *subdirectory* instead of inside the EmEditor program root, and still have EmEditor recognize and use the files?
    The preferred way:

    C:ProgramsEmEditorinifileseeCommon.ini
    C:ProgramsEmEditorinifileseeConfig.ini
    [ … and so on like this … ]

    The reason for this is my system is setup to avoid backing up files that appear in a “program root” directory in order to save space. If it were possible to put them inside a *child* directory of the program root (or some other user configurable place), there would be no problem.

    Thanks for any answers,

    I am sorry, there is no way to move those INI files into a subdirecotry. That is the way EmEditor recognizes the INI files without using the Registry settings. If you still need to move INI files into the subdirectory, let me know how you want EmEditor to determine where the INI files are.

    Yutaka Emura
    Keymaster

    chabulier wrote:
    this is not a big thing, but is there some one who want to copy a CR/LF to override the clipboard content?

    Did you try RC5? It doesn’t copy CR/LF to override the clipboard content with CTRL+C.

    in reply to: using ctrl+tab to iterate through "document tabs" #6617
    Yutaka Emura
    Keymaster

    dreftymac wrote:
    Question: Is there a way to get EmEditor to iterate through document tabs in sequential order from left to right? The way it behaves now, it is difficult to predict the order that the document tabs will be activated. Manually re-ordering the tabs by hand does not seem to help — the iteration order still remains unpredictable.

    In contrast, if you use document tabs in firefox (for example) and press ctrl+tab, the document tabs iterate in predictable visual order from left to right. The reverse is done if you press ctrl_shift_tab.

    It would be nice if EmEditor could be configured to work this way also.

    Thanks in advance for any answers.

    Yes. Select Customize on the Tools menu, select Window tab, and claer the Switch to Last Used Document for Next Document Command check box.

    in reply to: how can i replace all returns with something else? #6610
    Yutaka Emura
    Keymaster

    mai wrote:
    I want to replace all the returns(the enter) with something else, anyone know how can i do that?

    Check Use Escape Sequence, and replace
    n
    with something else.

    in reply to: How many vertical selection bugs in EmEditor? #6609
    Yutaka Emura
    Keymaster

    visitor wrote:

    Yutaka wrote:
    I am not sure exactly what the issue is. Can you write more in details?

    To reproduce this bug you should select vertical block of text from center of the window to it’s left side (1st column).
    After that you should press Shift+Left. The selection goes to the right side of the window (is it bug or a feature?).

    For example, assume you have some document:

    ————-
    00000000
    12345678
    00000000
    ————-

    Select vertical block of text from 4 to 1. Thus “1234” is selected. Press Shift+Left.
    You will see that “5678” (and “0000” in the first row) is selected now. Strange, isn’t it?

    It is an expected behavior. I don’t think it is strange in my opinion.

    in reply to: Just a small issue… #6608
    Yutaka Emura
    Keymaster

    zhouzh2 wrote:
    O.K. see here.
    bug

    Edit: Just upgraded to RC5 and didn’t have this issure any more.

    You might still get this issue since RC5 did not address this issue. There must be a certain condition. Please let me know if you find anything that reproduces this issue.

    in reply to: What's wrong with this? #6603
    Yutaka Emura
    Keymaster

    webern wrote:
    I have the problem with the macro below:

    with (document.selection){
    Replace("^","* ", eeFindNext | eeReplaceSelOnly | eeReplaceAll | eeFindReplaceRegExp);
    Replace("(?<!(.)$)$", ".", eeFindNext | eeReplaceSelOnly | eeReplaceAll | eeFindReplaceRegExp);
    }

    Something wrong with the above (highlighted) regexp. I know this regexp is not perfect, but I get exactly what I want with it on EE7.
    The results are different on EE8.

    Steps to reproduce:
    1. Apply the macro to the text below:

    [font=Verdana]EmEditor Text Editor is a lightweight
    EmEditor Text Editor is a lightweight
    EmEditor Text Editor is a lightweight.
    EmEditor Text Editor is a lightweight.


    (a) On EE7 the results are as follows (changes are highlighted):

    * EmEditor Text Editor is a lightweight.
    * EmEditor Text Editor is a lightweight.
    * EmEditor Text Editor is a lightweight.
    * EmEditor Text Editor is a lightweight.

    (b) On EE8 I got something wrong (highlighted):

    * EmEditor Text Editor is a lightweight.
    * EmEditor Text Editor is a lightweight..
    * EmEditor Text Editor is a lightweight.
    .* EmEditor Text Editor is a lightweight.

    2. Press Ctrl+Z right after applying the macro on EE8 then look at the screen to see what the Undo have produced.

    P.S. A friend of mine suggested me to replace the imperfective “(?<!(.)$)$", ".” with more reliable “([^.])$”, “1.
    but after applying it added an unwanted extra to the end of the selection.
    [/font]

    RC 5 addressed this issue. Please try again with RC 5. Thank you!

    in reply to: Just a small issue… #6598
    Yutaka Emura
    Keymaster

    zhouzh2 wrote:
    8.0RC4

    I don’t have this issue. In the HTML Bar Properties, is the “Automatically display the HTML Bar for selected configurations” checked? What is “blank” toolbar? Is it possible to show us a screenshot?

Viewing 25 posts - 2,801 through 2,825 (of 3,682 total)