• Utilizing other plugins within a plugin

    Locked
    1
    0 Votes
    1 Posts
    644 Views
    No one has replied
  • how to link to my URL

    25
    1 Votes
    25 Posts
    11k Views
    Joel SnyderJ

    Thanks so much, Guy –

  • spaces dropped when pasting

    Locked
    3
    1 Votes
    3 Posts
    1k Views
    Clyfton InC

    Oh wow … you are right.
    It is not notepad++
    It is linux vi editing program is not copying the spaces.
    Thanks.

  • How to add custom HTML Fold when Language = PHP?

    Locked
    6
    0 Votes
    6 Posts
    3k Views
    Will S.W

    Here is the answer… (unless someone tells me it creaes another a problem…)

    The "echo’ command can include multiple lines as the simple example below illustrates.
    Note the single quote mark brackets the echo’d code since double quote marks are used within the echo’d code at various points…

    So for me this example code folds perfectly and in my real case actually runs :-)

    If anybody sees a problem with using the multiple line php echo to manage folds in mixed html and php code please let me know.

    Example: (To try it paste it into Notepad ++ and select PHP as the language)

    <?php // TABLE 1 – ROW 1 – DISPLAY PAGE HEADER – THEN DISPLAY DATA INPUT FORM
    echo ’
    <table style=“width: 1233px; height: 595px; text-align: left; margin-left: auto; margin-right: auto;” border=“1” cellpadding=“2” cellspacing=“2”>
    <tbody>
    <tr>
    <td style=“vertical-align: top; width: 150px; text-align: center;”>
    </td>
    <td style=“vertical-align: top;”>
    ';
    $page_name = “mypage.php”;
    include ‘inc_header.php’;
    echo ’
    </td>
    <td Style=“vertical-align: top; width: 150px;”>
    </td> <!-- t1 tr1 td3 -->
    </tr>
    ';
    ?>

  • 0 Votes
    2 Posts
    869 Views
    guy038G

    Hello, @vito-korleone,

    I’m really disconcerted !! Unless I misunderstood your post, it’s quite an elementary task to achieve :-))

    Open the Replace dialog ( Ctrl + H )

    Type in a single space character in the Find what: zone

    Leave the Replace with: zone EMPTY

    Tick the Wrap around option and the Normal search mode

    UN-tick all the other options

    Click on the Replace All button

    Remark :

    If you must delete the space characters, in a specific zone of your file, only :

    Do a normal selection of that zone

    Open the Replace dialog ( Ctrl + H )

    Type in a single space character in the Find what: zone

    Leave the Replace with: zone EMPTY

    Tick the In selection option and the Normal search mode

    UN-tick all the other options

    Click on the Replace All button

    Best Regards,

    guy038

  • How to configure Notepad++ for compile in pascal

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    cipher-1024C

    @Meta-Chuh posted an easy method to get the Plugin Manager here. After you get everything updated, you should be able to easily install NPPExec. If you already have NPP set up and you want to just download the Plugin Manager dll, @Claudia-Frank gave some good instructions here. The link she gave for the Plugin Manger is for the 64 bit version. If you’re using 32 bit try this link.

    Good Luck

  • 1 line code while wanting multiple lines

    Locked
    4
    1 Votes
    4 Posts
    6k Views
    Claudia FrankC

    @Emiel-D

    so you are saying you do the same on desktop pc and notebook and
    if you open the file with npp on desktop you see multiple lines but if
    you open it with npp on notebook you only have one line?
    That would be strange. Do you use the same plugins on both?
    Maybe one of it is corrupting the file - but to be honest,
    I don’t see how. XML Tools has a linarize function, could it be that it is executed
    when loading a xml file?

    And no, there is no npp setting which needs to be applied.

    Cheers
    Claudia

  • Add to AutoIt function list

    4
    0 Votes
    4 Posts
    2k Views
    Edward UlleE

    @Claudia-Frank @extended is not a user defined function, but a part of AutoIt language. I found langs.xml thanks to you and added it and it is working. Thanks again.

  • Prefix and suffix a text entry at start of every line

    5
    1 Votes
    5 Posts
    5k Views
    Richard AvonR

    @Claudia-Frank
    Many thanks Claudia. Brilliant.
    Thanks for taking the time to explain this.
    In much appreciation
    Regards
    Richard

  • Best way to contribute?

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @proeng

    first step - read https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/CONTRIBUTING.md

    next step - take an easy issue like let’s say #4165 and do the needed code changes.
    Test, test and maybe test again if it does fix the problem. If you are convinced it is solved,
    test it again.

    Create the pull request and hope you did all you should have done ;-) (avoid magic numbers!! :-D )

    Cheers
    Claudia

  • function list doesn't shows all functions in arduino file

    3
    0 Votes
    3 Posts
    2k Views
    wanek t.W

    @MAPJe71, thanks for the advice, it worked! very useful info, it should be in the docs!

  • Colour code nested brackets

    4
    0 Votes
    4 Posts
    6k Views
    Claudia FrankC

    @BENielsen

    not sure if this helpful but up to 8 levels can be done with UDL (Language->define your language).
    You just need to make sure that you allow nesting for all delimiters
    and of course use different color.

    Cheers
    Claudia

  • 0 Votes
    2 Posts
    1k Views
    cipher-1024C

    Hi Gerry. It’s difficult to tell what the issue/goal is from your description, but here’s what I suggest. Determine if you can create the folder structure you want with File Explorer (aka Windows Explorer, not Internet Explorer). Can you navigate between the folders you want to use? If you can’t do those things, you may have a permission issue that was triggered by the update and you have bigger issues than N++. At that point you’ll want to find a generic Windows forum to help you troubleshoot the problem.

    If you’re only having problems with N++, come back and let us know exactly what you’re doing and how you’re doing it. "I go Save as, and when I go to create sub folder I cant " isn’t really a lot to go on. How are you creating the sub folder (right click-> New -> Folder in the Save-as dialog box?). What does it do when it “doesn’t let you”.

    How To Ask Questions The Smart Way is a really long read, but it teaches you some pretty good troubleshooting techniques and it will help prevent you from being eaten alive on forums less friendly than this one ;)

    Good Luck

  • Problem with function list

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    Димитър ТасевД

    Thank you very much. The problem is gone now.

  • compile/debug a Matlab script

    Locked
    1
    0 Votes
    1 Posts
    855 Views
    No one has replied
  • Splitting a text file into multiple text files at every blank line

    3
    0 Votes
    3 Posts
    10k Views
    Scott SumnerS

    @Davey-Clarke

    I don’t know if you are using 32-bit Notepad++ or the Pythonscript plugin, but if you’re willing to do both then the following script will do the job. When run while the desired file to be split (e.g., …\myfile.txt) is active, it will produce 2+ related files containing the post-split data (e.g., …\myfile_1.txt, …\myfile_2.txt, etc).

    I named this script SplitCurrentFileByBlankLine.py:

    import os import math def SCFBBL__main(): pathname = notepad.getCurrentFilename() if pathname.lower().startswith('new '): return # must have a real file on disk #line_delim_regex = r'^\h*\R' # match truly empty lines OR lines containing only whitespace line_delim_regex = r'^\R' # match truly empty lines ONLY match_span_tuple_list = [] def match_found(m): if m.start(1) != -1: # delimiter starts the file, followed by non-delimiter data, plus another delimiter (will get at most one match of this type) match_span_tuple_list.append(m.span(1)) elif m.start(4) != -1: # mid-file data plus delimiter (most matches will be of this type) match_span_tuple_list.append(m.span(4)) elif m.start(7) != -1: # end of file where no delimiter follows data (will get at most one match of this type) match_span_tuple_list.append(m.span(7)) editor.research(r'(?s)(?:(?:{D})+(?<g1>.+?)(?<g2>(?<g3>{D})+))' \ '|' \ '(?:(?<g4>.+?)(?<g5>(?<g6>{D})+))' \ '|' \ '(?<g7>.+?\z)'.format(D=line_delim_regex), match_found) num_files_to_create = len(match_span_tuple_list) if num_files_to_create < 2: return # no need to split anything if num_files_to_create > 10: # warn user if large # of files is going to be created answer = notepad.messageBox('There will be {} files created.\r\n\r\nCONTINUE ?'.format(num_files_to_create), '', MESSAGEBOXFLAGS.YESNO | MESSAGEBOXFLAGS.DEFBUTTON2) if answer != MESSAGEBOXFLAGS.RESULTYES: return (path_part, file_part) = pathname.rsplit(os.sep, 1) file_without_dot_ext = file_part; ext_wo_dot = '' try: (file_without_dot_ext, ext_wo_dot) = file_part.rsplit('.', 1) except ValueError: pass num_digits = int(math.log(num_files_to_create, 10)) + 1 out_file_path_str_format = '{base}_{{:0{d}}}'.format(base=file_without_dot_ext, d=num_digits) if len(ext_wo_dot) > 0: out_file_path_str_format += '.' + ext_wo_dot out_file_path_str_format = path_part + os.sep + out_file_path_str_format for (index, (match_start_pos, match_end_pos)) in enumerate(match_span_tuple_list): with open(out_file_path_str_format.format(index), 'wb') as f: f.write(editor.getTextRange(match_start_pos, match_end_pos)) SCFBBL__main()
  • how to see what is opened tag on a large file

    Locked
    1
    0 Votes
    1 Posts
    740 Views
    No one has replied
  • THERE IS A PLUGIN THAT LOCK OPEN FILES?

    Locked
    6
    0 Votes
    6 Posts
    4k Views
    Stefano FratoniS

    you fully understood the problem.

    this is a description of the problem:
    suppose I open a file (available on the net) with the notepad, another user who opens the same file but with another software (for example Ultraedit or Vim) must not be able to modify it.

    I hope I explained myself

  • How do I make this file readable?

    Locked
    1
    0 Votes
    1 Posts
    953 Views
    No one has replied
  • Select every found text

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    Scott SumnerS

    @Marcelo-Castro

    Unfortunately there is no direct way to copy redmarked text, nor in general copying any non-whole line result from a search (whole-lines can be copied by bookmarking while marking, then there is a command to copy bookmarked lines).

    So you can take @MAPJe71 's suggestion…make a copy of your file (if needed) and then remove the text (via Find something and Replace with nothing) you don’t want and keep the text you do want.

    There are some other ways to copy redmarked text; this thread discusses some of them: https://notepad-plus-plus.org/community/topic/12710/marked-text-manipulation