• Login
Community
  • Login
  1. Home
  2. General Discussion
Log in to post
Load new posts
  • Recently Replied
  • Recently Created
  • Most Posts
  • Most Votes
  • Most Views
  • L

    Text file overwritten, it is still recoverable?

    Watching Ignoring Scheduled Pinned Locked Moved
    9 Apr 19, 2018, 1:57 AM
    Mar 26, 2018, 3:40 AM
    0 Votes
    9 Posts
    6k Views
    L Apr 19, 2018, 1:57 AM

    @Li-Kasilter said:

    @lantzau said:

    it is on a Windows 10 machine

    Lol…It doesn’t matter ,This will be easier to solve on here ,I have experience in this problem ,

    Thanks. hope this find the lost file. I am almost give up

  • A

    Create a Msg box in Notepad++ Macros

    Watching Ignoring Scheduled Pinned Locked Moved macro msgbox macros
    3 Apr 18, 2018, 8:41 AM
    Apr 17, 2018, 8:16 AM
    1 Votes
    3 Posts
    5k Views
    Д Apr 18, 2018, 8:41 AM

    For text processing, I use the jN plug-in for Notepad ++.
    https://github.com/sieukrem/jn-npp-plugin
    But it allows you to process text in the editor using JavaScript.
    For example, cut lines longer than 300 characters:

    function InputBox(psTxt, psCapt, psVal) {
    var rv = psVal;
    var so = new ActiveXObject(“MSScriptControl.ScriptControl”);
    so.Language = ‘VBScript’;
    var vCode =
    ’ Function getInputNumber() \n’+
    ’ val = InputBox(“‘+psTxt+’”,“‘+psCapt+’”,“‘+psVal+’”) \n’+
    ’ getInputNumber = val \n’+
    ‘End Function \n’;
    so.AddCode(vCode);
    rv = parseInt(so.Run(“getInputNumber”));
    return rv;
    }

    // удаляем строки которые длинее n символов
    function rowsOverLengthRemote(psOper) {
    var vOLen = 300;
    if(!psOper) { psOper = 1; }
    vOLen = InputBox(‘Input length’,“For very long rows”,vOLen);
    vOLen = parseInt(vOLen);
    if(vOLen <= 40) {
    return;
    }
    // debugger;
    // return;
    var vTextAll = Editor.currentView.text;
    var vArr = vTextAll.split(‘\n’);
    var vTextNeed = ‘’;
    var vLine = ‘’;
    for(var i = 0; i<vArr.length; i++) {
    vLine = vArr[i];
    if(vLine.length <= vOLen) {
    vTextNeed = vTextNeed + ‘\n’ + vLine;
    } else {
    if(psOper == 2) {
    message(“Cut string N: “+i+’ length” ‘+vLine.length+’ >> ‘+vLine.substring(0, 500));
    vTextNeed = vTextNeed + ‘\n’ + vLine.substring(0,vOLen);
    } else if(psOper == 1) {
    message("Kill string N: "+i+’ length” ‘+vLine.length+’ >> '+vLine.substring(0, 500));
    }

    } } Editor.currentView.text = vTextNeed;

    }

    var myKillVeryLengthRows = {
    text: “Удалить строки длинее N \tCtrl+Shift+K”,
    ctrl: true, shift: true, alt: false,
    key: 0x4B, // “K key”
    cmd: rowsOverLengthRemote
    };

    addHotKey(myKillVeryLengthRows);
    scriptsMenu.addItem(myKillVeryLengthRows);

    function rowsOverLengthCut() { rowsOverLengthRemote(2); }
    var myCutVeryLengthRows = {
    text: "Обрезать строки длинее N ",
    cmd: rowsOverLengthCut
    };
    scriptsMenu.addItem(myCutVeryLengthRows);

    It also has the ability to display messages:

    JavaScript alert (‘Message’) status (‘Message’); - in the status bar N ++ message (“Message”) - output to the man-made message box (my development):
    http://prntscr.com/j6s9j9
  • R

    Finding Matching Brackets

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Apr 17, 2018, 12:08 PM
    Apr 13, 2018, 9:31 AM
    0 Votes
    4 Posts
    30k Views
    S Apr 17, 2018, 12:08 PM

    @linpengcheng said:

    real-time Matching Current Brackets block

    I think the OP is talking about a different use-case (“long file”, “whole file”) than what the script you pointed to provides. The script is for where the opening and closing delimiter are viewable simultaneously in an editing tab.

  • P

    When case insensitive sorting will be added in Notepad++ x64 (without TextFX)?

    Watching Ignoring Scheduled Pinned Locked Moved sort insensitiv
    1 Apr 17, 2018, 8:47 AM
    Apr 17, 2018, 8:47 AM
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 成

    How to automatically add space on both sides of the operator

    Watching Ignoring Scheduled Pinned Locked Moved
    13 Apr 17, 2018, 4:09 AM
    Mar 27, 2018, 1:34 PM
    0 Votes
    13 Posts
    7k Views
    F Apr 17, 2018, 4:09 AM

    You could try to use “find and replace” feature, set to consider regular expressions, and replace all no-space (x) char with x followed a space in a current selection.

    Save it as a macro and apply in other parts of code.
    https://10bestgame.com/instagram-cool-captions/

  • R

    Create a login to notepad++ like in google chrome

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Apr 16, 2018, 2:15 PM
    Apr 15, 2018, 6:33 AM
    0 Votes
    2 Posts
    2k Views
    C Apr 16, 2018, 2:15 PM

    At least the settings could be already taken from a local sync folder of a cloud storage like e.g. dropbox, onedrive, … See settings->options->cloud

  • L

    npp多行标签之间的间距过宽,这个可否设置为自行调节?

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Apr 15, 2018, 2:21 AM
    Apr 15, 2018, 2:21 AM
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • J

    Collapsed lines become visible when printed?

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Apr 14, 2018, 10:27 PM
    Apr 14, 2018, 10:27 PM
    0 Votes
    1 Posts
    860 Views
    No one has replied
  • P

    Find function window

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Apr 14, 2018, 12:20 PM
    Apr 14, 2018, 12:20 PM
    1 Votes
    1 Posts
    723 Views
    No one has replied
  • Võ Thanh ChiV

    How To Set-up Command Pr in Notepad++

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Apr 14, 2018, 10:37 AM
    Apr 14, 2018, 10:37 AM
    0 Votes
    1 Posts
    653 Views
    No one has replied
  • Gene EricG

    FIXED: Drag and drop files into Notepad++

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Apr 14, 2018, 12:19 AM
    Apr 14, 2018, 12:19 AM
    0 Votes
    1 Posts
    9k Views
    No one has replied
  • guy038G

    Some thoughts about regex assertions, conditional structures and (non-)optional groups !

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Apr 13, 2018, 4:47 AM
    Apr 13, 2018, 4:47 AM
    3 Votes
    1 Posts
    947 Views
    No one has replied
  • ChillerThonC

    False positive warning analysis ?

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Apr 12, 2018, 1:59 PM
    Mar 30, 2018, 7:18 PM
    0 Votes
    2 Posts
    1k Views
    ChillerThonC Apr 12, 2018, 1:59 PM

    image details about the file

  • nilesh bobdeN

    File splitter Enhancement : to view big files

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Apr 12, 2018, 12:43 PM
    Apr 12, 2018, 12:43 PM
    0 Votes
    1 Posts
    794 Views
    No one has replied
  • Lisa SwiftL

    A silly question...

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Apr 10, 2018, 8:16 PM
    Apr 6, 2018, 11:28 PM
    0 Votes
    3 Posts
    2k Views
    C Apr 10, 2018, 8:16 PM

    Could you please add the debug information of N++. What kind of project do you compile and how? With the help of a N++ plugin?

  • Daniel RosenbergD

    Use of tab for white space

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Apr 10, 2018, 4:44 PM
    Apr 10, 2018, 3:52 PM
    0 Votes
    3 Posts
    2k Views
    Daniel RosenbergD Apr 10, 2018, 4:44 PM

    Thanks so much. I never thought to look in the language settings, I was always looking in the edit settings.

    Happy Day!

  • BeknoB

    Search for text in my tabs.

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Apr 10, 2018, 11:45 AM
    Apr 10, 2018, 8:11 AM
    0 Votes
    2 Posts
    1k Views
    S Apr 10, 2018, 11:45 AM

    @Bekno

    How about using the Find All in All Opened Documents button on the Find tab of the Find window??

    Of course, maybe your request makes more sense (as a new feature) if you are talking about limiting the search to open tabs that match a certain filespec…

  • Martin ČapkaM

    Change style for PHP

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Apr 10, 2018, 9:28 AM
    Apr 10, 2018, 9:28 AM
    0 Votes
    1 Posts
    722 Views
    No one has replied
  • Eitan SolomonE

    "Search Private" option on "Open" window disappeared.

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Apr 10, 2018, 9:05 AM
    Apr 10, 2018, 9:05 AM
    0 Votes
    1 Posts
    625 Views
    No one has replied
  • G

    I need this

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Apr 10, 2018, 7:47 AM
    Apr 10, 2018, 7:47 AM
    0 Votes
    1 Posts
    716 Views
    No one has replied
The Community of users of the Notepad++ text editor.
Powered by NodeBB | Contributors