When I go to Preferences->Edit Components I can tick "Replace by space".
But this option seems to be only for newly entered tabs.
All existing tabs in a text file (or assume I copy a text with embedded tabs) are NOT replaced. So the question is: How can I replace all ALREADY EXISTING tabs by (e.g.2) spaces?
Thomas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do a search and replace, select extended search mode, search for \t (backslash t) and replace with whatever you want, click find next )because NP++ has a habit of highlighting the word next to the cursor when you do a search, very irritating), then click replace all. I have not found anywhere in the docs what the different options for the extended search are but \t is a tab.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Problem is that, if the tab is supposed to align the following text at some position (a multiple of the tab width), then search and replace involves computing how many spaces it takes to reach the desired column.
You may have an old version of NppHelp.chm, because the manual for 5.4.5 lists all the available \ constructs. The pdf and ps versions are not maintained afaik; if anyone knows how to convert automatically to these formats, please email me (quasar850 hat redffmail doubt com). The SF address doesn't seem to work well for some reason.
CChris
CChris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I go to Preferences->Edit Components I can tick "Replace by space".
But this option seems to be only for newly entered tabs.
All existing tabs in a text file (or assume I copy a text with embedded tabs) are NOT replaced. So the question is: How can I replace all ALREADY EXISTING tabs by (e.g.2) spaces?
Thomas
Do a search and replace, select extended search mode, search for \t (backslash t) and replace with whatever you want, click find next )because NP++ has a habit of highlighting the word next to the cursor when you do a search, very irritating), then click replace all. I have not found anywhere in the docs what the different options for the extended search are but \t is a tab.
Problem is that, if the tab is supposed to align the following text at some position (a multiple of the tab width), then search and replace involves computing how many spaces it takes to reach the desired column.
You may have an old version of NppHelp.chm, because the manual for 5.4.5 lists all the available \ constructs. The pdf and ps versions are not maintained afaik; if anyone knows how to convert automatically to these formats, please email me (quasar850 hat redffmail doubt com). The SF address doesn't seem to work well for some reason.
CChris
CChris
That would be a neat function for TextFX to provide, but development seems to be stalled. Ask for it on IdeaTorrent.
CChris