// I'm trying to keep my settings when I make new installations of NP++ //



  • Hi! In another post I say about why I make several installations and ask for help for keeping the same settings in an easy way. Here I have questions on how to make settings I like very much and I don’t get.

    (Probably I managed to set some this in the past, but I can’t remember. Sorry.)

    1. How to eliminate the toolbar on top.
    2. How to have tabs in several rows.
    3. How to not have -/+ markings to collapse sections.
    4. How to have braces/brackets bold only when showing matches.
    5. How to have uniform background color in Javascript, not only behind words (in PHP I get a general background color).

    Thank you.



  • welcome to the notepad++ community, @Ricardo-E.-Trelles

    1. How to eliminate the toolbar on top.
      go to settings > preferences > general and activate hide at the toolbar section.
    2. How to have tabs in several rows.
      go to settings > preferences > general and activate multi-line at the tab bar section.
    3. How to not have -/+ markings to collapse sections.
      go to settings > preferences > editing and select none at the folder margin style section.
    4. How to have braces/brackets bold only when showing matches.
      i don’t know, or i don’t understand the question.
    5. How to have uniform background color in Javascript, not only behind words (in PHP I get a general background color).
      i don’t know, or i don’t understand the question.

    best regards.



  • Hi, Meta Chu! I’m very grateful for your help.

    “How to have braces/brackets bold only when showing matches.
    i don’t know, or i don’t understand the question.”

    Lately, making new installations and trying to update old ones that I still use, I get strange results setting Brace highlight style. I keep it with black foreground color and bold. NP++ in Javascript is keeping braces and brackets boldface all the time and highlighting of matched braces just doesn’t work. BUT in PHP braces and brackets look normal and highlighting of matches work.

    “How to have uniform background color in Javascript, not only behind words (in PHP I get a general background color).
    i don’t know, or i don’t understand the question.”

    In the past I got a nice uniform background color in all the code of Javascript, now when I set DEFAULT background color for JS I have to go through each token of JS and set its background color too.
    For some reason, in other installations PHP keeps its back color in all tokens.

    Now I’ll study your answer to my other post and see if can use your instructions in my multiple installations. BUT I need help with the point of the braces/brackets above, please.

    Thank you again.



  • Hi!

    UPDATE:

    I just went to settings > preferences >style configurator>JavaScript
    and set background color for DEFAULT and all the other items there.
    Now I see patches of the color behind items but not in the general background.

    PHP has similar settings (with another color) and shows a nice general background color in all the PHP code area…

    Thank you for the attention.



  • @Ricardo-E.-Trelles

    do you still have the machine, where everything was as you wanted it to be ?
    if hopefully yes, you could have a look at all those settings, as well as ideally cloning all of them to the new machine.

    if you do still have this setup, i’d also recommend to make a backup of the folders described at your other post.

    best regards.



  • I’m very grateful for your help, Meta Chu.

    It took me some time to continue the discussion because as I checked my system here this has turned to be rather complicated for me and I would like and have to obtain results as fast and simple as possible.

    I only use one machine for all of this. And I always have installed NP++ by simply copying to a new folder the contents in npp.#.#.bin.zip.

    The only %AppData%\Notepad++\ in my system is in
    C:\Documents and Settings\Administrator\Local Settings\Application Data\Notepad++\
    which is an empty folder. There is a config.xml file in the folder of each installation. BUT I have just discovered that somehow changes in one installation are reflected in SOME others.

    I can explain further why I use multiple installations in my machine to get several sessions for several projects I work in, but for now let’s see if we can move ahead just considering the following:

    I just expanded npp.7.7.bin.zip in a new folder and worked to get my usual preferences. I code in PHP and JavaScript. I could set manually some of my preferences using your instructions for the toolbar, etc. and more.

    I changed Brace highlight style from red to black bold, in PHP that works perfectly for braces/bracket match check, but in JS they stay the same black/bold with check or no check. I would like to see in JS a regular font for braces/brackets, that turns bold only in match check. It works like that in PHP.

    My second big concern is that I would like to have a nice even background color behind all the code, in different colors for PHP and JS. That always works perfectly for PHP and works for JS embedded code in html. Code from a separate .js file shows the special background color on patches behind tokens only.

    Settings for background color in Style configurator for PHP come in a new installation with a special color in DEFAULT and the rest of the items, for JS (embedded) they all come with another special color too, and for regular JS all background colors come white. Then, if I change white to another color in regular JS’s DEFAULT and the rest, that back color shows only as patches behind tokens, there is no even back color filling everything.

    You should be able to reproduce both the constant bold braces in all JS and the back color only in patches in JS not embeded.

    Nothing of that happened to me in the past. As a result of recent installations and me trying to find ways to make them easier (and that somehow some changes in settings replicate in other installations!) now I don’t have any instalation working as they used to in those respect.

    What settings would you use to have in JS regular black braces/brackets that change to bold to indicade match, and to have a non-white uniform full background color in JS?



  • Hi!

    UPDATE:

    Problem with braces match not being shown in JavaScript solved!

    Default installation came with “operator” bold in JS. That made braces/brackets (operators???) bold all the time.

    Now I’m just suffering from background color not shown everywhere in JS (not embedded).



  • UPDATE TWO:
    All my concerns and doubts in this post seem to be solved!

    1. Original, not modified, versions of NP++ come with style for JavaScript/“operator” set to black/bold. Surprisingly that makes all braces/brackets bold by default! One has to remove that original bold setting to have that match check shown with black/bold.

    2. It seems there is no way to set a full even background color for a language, except when it is embedded. JS (embedded) can be set, PHP too, actualy PHP is always embedded between <?php ?> tags, even if there is nothing else outside the tags. Contents of a JS file isn;t embedded when you check it by itself.
      I had the wrong impresion code of a JS file was shown in a light blue tint for the background, actually it has a white background (I would like to see it as it is when embedded, though!).

    Finally
    3. If one makes a new installation in a fresh folder and copy config.xml from another installation, this config.xml carries a line like
    <GUIConfig name=“stylerTheme” path=“C:\ …\np++previous\stylers.xml” />
    and previous stylers.xml continue to be used in the fresh new installation.

    So now everything is working basically well for me, I 'm happy, and very thankful to Meta Chu for the quick start.

    But I’ll be back. We need a better way to use sessions than having several installations ( or having to save/load sessions files all the time ).

    Thank you for the attention.


Log in to reply