Forum Replies Created

Viewing 18 posts - 3,626 through 3,643 (of 3,643 total)
  • Author
    Posts
  • in reply to: % treated as a comment in tex mode. #3878
    Yutaka Emura
    Keymaster

    You can remove \% from Line Comment field in Highlight (2), but then \% will not be recognized as a comment. Thanks for your comments!

    in reply to: Smart Quotes #3873
    Yutaka Emura
    Keymaster

    Actually, You can do those now:

    Select “Replace” on the Search menu (or press CTRL + H), Check “Use Regular Expressions”, and then:

    Eduate Quotes:


    Find: '(.*?)'
    Replace with: ‘1’

    Stupefy Quotes:


    Find:‘(.*?)’
    Replace with: '1'

    Or you can write macros like these (JavaScript):

    Eduate Quotes:


    document.selection.Replace("x27(.*?)x27","‘1’",eeFindNext | eeFindReplaceCase | eeReplaceAll | eeFindReplaceRegExp);

    Stupefy Quotes:


    document.selection.Replace("‘(.*?)’","x271x27",eeFindNext | eeFindReplaceCase | eeReplaceAll | eeFindReplaceRegExp);

    I will submit these macros into the library.

    in reply to: autocorrect supporting wildcards/regex #3872
    Yutaka Emura
    Keymaster

    Thanks for your request!

    in reply to: Open Documents Plugin #3869
    Yutaka Emura
    Keymaster

    Thanks again for following up! The tab bar is always on when tabs are enabled. This is the current specification. However, it many people ask this as an option, I might change the specification. Thanks!

    in reply to: Smart Quotes #3868
    Yutaka Emura
    Keymaster

    Thanks for following up your message. It is not hard for someone to create a plug-in to do smart quotes. Can you please clarify what educate quotes or stupefy quotes mean. Thanks!

    Yutaka Emura
    Keymaster

    I am glad it was solved! :-)

    Yutaka Emura
    Keymaster

    I will consider that. Thanks!

    in reply to: Comment / Uncomment current line without selecting text? #3863
    Yutaka Emura
    Keymaster

    It is a specification that text must be selected before you can select each command in Convert Selection sub menu. However, it is possible to make it an option if many users like that way.

    in reply to: new way to display text #3859
    Yutaka Emura
    Keymaster

    Thanks for a good idea! It might be possible by writing a plug-in.

    in reply to: simple saving of search, and search and replace jobs #3857
    Yutaka Emura
    Keymaster

    I will try to add a feature of just that. Thanks for your opinions.

    Yutaka Emura
    Keymaster

    You can add Save As (encoding) to the main menu by selecting Customize Menus on the Tools menu, and then select File category – List of Encodings to Save.

    in reply to: cursor position #3851
    Yutaka Emura
    Keymaster

    I perfectly understand what you mean, and I know some text editors allow you to do just that. I will consider that in future. Thanks! :-)

    in reply to: store settings in .ini/.xml instead of registry #3849
    Yutaka Emura
    Keymaster

    This is one of frequently asked features, and I consider that seriously. Thanks!

    p.s. Please don’t post the same message in different forums.

    in reply to: store settings in .ini/.xml instead of registry #3848
    Yutaka Emura
    Keymaster

    This is one of frequently asked features, and I consider that seriously. Thanks!

    in reply to: select non-continuous text #3845
    Yutaka Emura
    Keymaster

    I understand your requests. Thanks for your opinions.

    in reply to: save empty text file #3842
    Yutaka Emura
    Keymaster

    Did you try:

    Text Properties > File tab > Saving button > Always Enable Saving?

    I hope this will solve your issue. :-)

    in reply to: select non-continuous text #3841
    Yutaka Emura
    Keymaster

    That isn’t very easy, but I will consider that. What do you want to do by double-clicking the text?

    in reply to: how to delete duplicate lines #3835
    Yutaka Emura
    Keymaster

    It isn’t easy to do with regular expressions, but how about a macro like this (JavaScript):


    // Create an array
    a = new Array();

    // Fill the array a with all lines (with returns) in the document.
    document.selection.StartOfDocument();
    for( ; ; ){
    y = document.selection.GetActivePointY( eePosLogical );
    document.selection.SelectLine();
    sLine = document.selection.Text;
    if( sLine == "" ) { // Reached the end of document, escape from the loop
    break;
    }
    a.push( sLine );
    document.selection.Collapse();
    if( document.selection.GetActivePointY( eePosLogical ) == y ) {
    // Reached the end of document (the last line without return), escape from the loop
    break;
    }
    }

    // Delete duplicate elements.
    for( i = 0; i < a.length; i++ ){
    sLine = a[i];
    for( j = i + 1; j < a.length; j++ ){
    if( sLine == a[j] ){
    a.splice( j, 1 );
    j--;
    }
    }
    }

    // Replace the entire document with new elements
    document.selection.SelectAll();
    document.selection.Text = a.join( "" );

    Please let me know if you have questions. :-)

Viewing 18 posts - 3,626 through 3,643 (of 3,643 total)