Automaticke zvyrazneni po otevreni souboru je aktivni do velikosti nastavene v
Nastaveni :: Prima editace :: (Special settings)
HLOnUpToSize=...
Kdykoliv jde i pro vetsi soubor zvyraznovac aktivovat prislusnym tlacitkem.
--
http://forum.pspad.com/read.php?1,37824,37825
PSPad freeware editor
Ve slovenske verzi se jmenuje Specialne konvertory :-)
--
http://forum.pspad.com/read.php?1,37843,37848
PSPad freeware editor http://www.pspad.com
mjs7231:
In my code I have a string with ? in it, and the colors get all screwed up:
...
There is an even simpler workaround:
$string
Find and replace in PSPad really has some limitations, especially the mentionned
\n
you can try an addon for multiline replacements
http://forum.pspad.com/read.php?2,34061#msg-34061
to do that in non RE mode (since its support also have some limits),
or in this case you can use the built in
Try Tools :: User convertors
--
http://forum.pspad.com/read.php?2,37790,37920
PSPad freeware editor http://www.pspad.com
Hi, thanks again for the newest enhanced release!
For some info on backreferences see e.g.
http://www.regular-expressions.info/brackets.html
or the PSPad help: http://gogogadgetscott.info/pspad/regexpr.htm
(Section: Metacharacters - Backreferences)
Basically, by surrounding an expression with
Try phreplace addon for multiline replacements:
http://forum.pspad.com/read.php?2,34061
(or you can try to replace in regexp mode: newline \n
but this is not working as expected in some cases.)
--
http://forum.pspad.com/read.php?2,37963,37965
PSPad freeware editor http://www.pspad.com
You don't need regexp at all for doing this.
Replace (without quotes)
;
with ,
bee:
I'm no expert of regular expression. But how to do this:
a;
b;
c;
d;
into:
a,b,c,d
and vice-versa, using this plugin? TIA.
Use a normal line end (enter) in the replace field.
--
http://forum.pspad.com/read.php?2,38000,38013
PSPad freeware editor http://www.pspad.com
phdesigner:
if I search for [ ]*(?=[ ]) in PSPad's normal search it says there's an error in
the search expression, however if I search for it with phReplace I find mathces
but some of the matches will have 0 length.
Hi, thanks for the hint, as I see now, there might be some drawbacks of the new
version of phreplace - 1.3.7 - non RE replacing of newlines definitely worked in
previous versions.
Now replacing e.g.
with ;
works only with single replace; not with replace all (in that case the ; is
only
lstegelitz:
...
How can that be ? Does PSPad convert certain characters on loading a file as
text (such as CR/LF) ?
Hi, I think,
And does it work for you if called via menu?
It only works on selection, but besides this there shouldn't be any known
problems.
--
http://forum.pspad.com/read.php?2,33514,38339
PSPad freeware editor http://www.pspad.com
Z IE7 prijde asi stranka bez pripony, pokud to nezpusobuje nejake kolize, daji
se do zvyraznovace html pridat vsechny takove soubory:
http://forum.pspad.com/read.php?2,38088,38088#msg-38088
Nastaveni :: Nastaveni zvyraznovacu :: HTML :: Upresneni :: Masky souboru:
pridat:
*. (bez uvozovek)
--
Sotho Tal Ker:
~ option to show the current path of the file in the tab.
Usually the file path of the active tab is shown in the
tancmi:
Zdravím, následující problém je v tom že při správně nastaveném
kompilátoru, mi to hlásí:
Chybný formát řádku pro spuštění externího programu
Unable to create Process
Process completed, Exit Code 0.
Execution
You can use only fixed-width fonts in PSPad.
--
http://forum.pspad.com/read.php?2,38577,38579
PSPad freeware editor http://www.pspad.com
There are several options dealing with line numbers:
To display line numbers before each line use
View :: Line numbers
To insert line numbers in the document itself you can use Edit :: Lines
manipulation :: Insert text into lines (Alt+I)
To insert the line number before the found string in the
cheol:
mouse double click on the specified word, then press F3(Find Next)
You can use Ctrl+Shift+DOWN/UP after selecting the searched
I don't think this is possible now, but it could be an useful option.
(I hope, I haven't overlooked some magic item in settings or direct edit ...)
--
http://forum.pspad.com/read.php?2,38621,38629
PSPad freeware editor http://www.pspad.com
This is a known limitation of the search and replace engine of PSPad -
multiline search is not really supported.
You can try an addon: phReplace - A Multiline Search / Replace for PSPad
http://forum.pspad.com/read.php?2,34061#msg-34061
(I haven't tested such huge replacements yet, but hopefully
Melo by se dat hned po otevreni souboru (pokud se otevre v nezadoucim kodovani)
rucne nastavit v menu format a pak pouzit znovuotevreni souboru Ctrl+R) (ztrati
se predchozi zmeny, dulezite je nedat soubor ulozit ve spatnem kodovani...). V
nekterych pripadech (utf-8) se nejspis kontoluje
There isn't any column edit in PSPad now;
for (un)commenting code you can use Ctrl+Shift+A (after selecting the lines).
--
http://forum.pspad.com/read.php?2,38689,38698
PSPad freeware editor http://www.pspad.com
PetrF:
pro funkci hledat - nahradit bylo možné zahrnout aktuální text (slovo
nebo výběr)
Mam pocit, ze pri vybrani zprava doleva se
Check the encoding of the file and the one used by PSPad (shown in statusbar) -
maybe utf ? -, you can set it manually if necessary (Format menu) and reopen the
file (Ctrl+R).
You can also check your font settings, if these characters are supported (Format
:: Font).
--
Ctrl+SPACE ? (after selecting some HTML Highlighter)
--
http://forum.pspad.com/read.php?2,38779,38780
PSPad freeware editor http://www.pspad.com
Activate/deactivate char table from menu Tools :: Char table (or Alt + A) :-)
The latter problem could be more difficult;
I guess the chars over 127 would depend on your system locale, maybe also the
font, or the system wide Windows option Language of non-unicode programs
--
Usually you can use the context menu: Open file appointed by selection (after
selecting the actual string)
--
http://forum.pspad.com/read.php?2,38818,38838
PSPad freeware editor http://www.pspad.com
na viceradkove hledani a nahrazovani lze zkusit skript phReplace
http://forum.pspad.com/read.php?2,34061#msg-34061
nahrazovani RE je podporovano zatim jen castecne a s \n jsou nekdy taky
problemy, s konci radku jde ale pracovat v beznem hledani (v posledni verzi jsou
i problemy s hromadnym
There are quite some problems with multiline search and replace in PSPad; for
some tasks you can use
Edit :: Lines manipulation :: Join lines (after selecting the respective text)
Line endings are replaced with spaces (which can be replaced normally in the
resulting line, if not needed).
--
Well, I would say, some extra spaces usually cause less harm, than directly
joining different words (at least in situations I normally use this function).
But surely there are also uses, when a pure join without spaces would be useful.
The best in my opinion would be an option to choose a
Actually it could be done using a simple script like this one (experimental
version - bug reports/comments welcome ...)
The another function splits text in separate lines using the given separator
(regular expression metacharacters need to be escaped with backslash \ )
If someone would be
Rad bych se zeptal na aktualni (build 2259) stav funkci pro vyber textu
zavedenych v drivejsich verzich (v tomhle konkretnim pripade pro javascript):
jde o
blockBeginX, blockBeginY, blokEndX, blokEndY // 4.5.3 (2247)
blockBegin (x,y), blockEnd (x,y), selectionMode () // 4.5.3 (2244)
napr.
echo
Diky moc za rychlou odpoved, tusil jsem, ze bude chyba mezi zidli a klavesnici
...
Mel bych jeste jeden dotaz ke skriptum, pokousim se jednoduchy nahrazovaci
skript v javascriptu a zajimalo by me, v jakem formatu se predavaji retezce mezi
skriptem a programem - latinka bez diakritiky a s ÄŤeskou
Diky za odpoved, format unicode by pripadne nebyl spatny, samozrejme jsou ale
aktualnejsi zalezitosti, pokud by prevod byl komplikovany. Momentalne tyto cizi
znaky nepodporuji ani nativni dialogy programu, tak asi pujde o dlouhodobejsi
upgrade.
--
http://forum.pspad.com/read.php?4,39100,39105
Check the scripts in
... PSPad\Script\JScript\
Eventually you can delete or move that ones, you are not using.
Or if you aren't using scripts at all, you can disable them in
Settings :: Program settings :: System integration :: Integrated scripting
support (WSH)
--
Jeste drobne doplneni - zda se, ze znaky mimo ANSI jsou nahrazeny za otazniky az
pri prenaseni zpet od skriptu do okna editoru. Text prijaty skriptem se jevi v
poradku (aspon podle javaskriptoveho charCodeAt() )
Pokud nekdo chtel vyzkouset vysledny provizorni a nizkonakladovy skript
Lacine RE pro
Thanks, I really don't expect more from my coding then to get (probably,
hopefully ...) some things done, so don't expect much from the style ... :-)
Finally I decided, to put it together somehow ...
The resulting script: _Poor man's REplace_ is to be found at
The initial version of _Poor man's REplace_ is to be found at
http://www.vbr.wz.cz/pspad/poor-man-s-REplace.html
It is meant as a _low cost tool for multiline replacement tool_ until
PSPad gets a native support for that or until the RE support of the another much
more sophisticated tool will be
Diky, phReplace uz nejakou dobu pouzivam, ale bohuzel ma v posledni verzi trochu
problemy s nahrazovanim koncu radek, nepodporuje backreference pri nahrazovani a
- pochopitelne ocesava znaky mimo ANSI, s nimiz casto pracuji. (tenhle problem
jsem v uvedenem skriuptu jen obesel generovanim HTML s
Lolo:
Cancel button has the same effect than OK.
Hi, unfortunately - it probably can't be corrected easy;
This is the behavior for
MrSpock:
InputText() will return an empty string if and only if the user
clicks Cancel or deletes the content of the edit box and clicks
OK.
Jese muzu zkusit nabidnout vlastni provizorni vytvor na viceradkove RE
nahrazovani;
radeji ale prosim testovat na zalohovanych souborech, za pripadne skody
neprejimam zodpovednost ... :-)
(na strance je vedle skriptu ke stazeni i popis ne uplne intuitivnich ovladacich
prvku a funkci)
Use the replace function with the folowing pattern
e.g.:
/speaker's
/g, speaker's:
it should replace a newline after speaker's with :
See the script page for some basic patterns
http://www.vbr.wz.cz/pspad/poor-man-s-REplace.html
(^ and $ only seem to match on the absolut begining/end of
I just tried to put some simple javacript together for doing such operations -
you can try it out - at your risk :-) I suppose, your file might be quite large,
and I haven't tested very extensively so far...
The script can be downloaded at
http://www.vbr.wz.cz/pspad/poor-man-s-REplace.html
use
cite:
how to delete all line in a file maching word ?
Hi, maybe you can try my simple replace script, coded for multiline
I'm sorry; can you be more specific? what line or errorcode did you get?
--
http://forum.pspad.com/read.php?2,39206,39211
PSPad freeware editor http://www.pspad.com
Menu View :: Line numbers ?
--
http://forum.pspad.com/read.php?2,39218,39221
PSPad freeware editor http://www.pspad.com
Pokud je onen text zdrojovy kod, je lepsi pouzit treba
Soubor :: Export :: Export do schranky v HTML
a obsah schranky pak ulozit jako html stranku
- nevim, jestli je chovani exportunejak nastavitelne, ale pouziti tagu pre,
span ... a css mi plne vyhovuje.
--
Nemuze byt problem s nejakym skriptem namapovanym na stisk tabulatoru? Parkrat
se ve forech cosi o tom objevilo (myslim, ze to byl skript CIndent, alepon v
nektere drivejsi verzi, navic v zavislosti na nastaveni editoru - skutecne
tabulatory aj.).
--
http://forum.pspad.com/read.php?4,39267,39270
pspad:
In the next build new parameter will be available and function returns this
value if Storno button was pressed.
Thank you very
Thanks for the answer,
in one of my experimental scripts
http://www.vbr.wz.cz/pspad/poor-man-s-REplace.html
- joining or splitting lines using an adjustable separator - allmost any
string may be possible as a separator
As soon as the build is public, I will test it with some special
pspad:
funkce skriptu inputText(popisek, výchozí_hodnota, storno_hodnota: string):
string. Pokud je vyplněna (nepovinná) storno_hodnota, je vrácena při stisku
tlačítka Storno
Unfortunately there seem to be some problems with newlines too, in the last
version of phReplace.
For the meantime, I tried to put a much simpler and rougher tool in javascript
together, to handle newline operations using regular expressions.
http://www.vbr.wz.cz/pspad/poor-man-s-REplace.html
pja:
By the way, I have tried both the suggested addons and neither seems to be able
to replace say \n\n with ### or \n with (a blank space).
Obavam se, ze pokud bude knihovna re stejna jako je v beznem hledani a
nahrazovani PSPadu, tak se s negativnim lookbehind nevyrovna ...:-) (jako i se
vsemi ostatnimi lookaround).
--
http://forum.pspad.com/read.php?1,39286,39407
PSPad freeware editor http://www.pspad.com
Melo by stacit vypnout skriptovani v nastaveni PSPadu,
Nastaveni :: Integrace do systemu :: [ ] podpora skriptovani pomoci WSH
--
http://forum.pspad.com/read.php?1,39448,39450
PSPad freeware editor http://www.pspad.com
Klaus:
... there should be a paste over insertion mode, not inserting the selected
and pushing the old content to the right! (Or is this possible with a feature I
haven't found?)
tqs:
možnost nastavit velikost/typ fontu.
Format :: Pismo (daji se nastavit jen neproporcni fonty)
Rychla zmena velikosti je mozna
Nejaky zvyraznovac pro TeXy by mel byt k dispozici - da se zapnout v Nastaveni
programu :: Nastaveni zvyraznovacu :: (zaskrtnout nejakou polozku not assigned
:: vybrat TeXy v pravem sloupci)
Osobne s touto syntaxi ale nepracuji, je treba ji vyzkouset a pripadne upravit.
--
You can try: Edit :: Lines manipulation :: Insert text into lines (Alt+I)
(a bit more complicated than block edit, but also maybe more powerful)
--
http://forum.pspad.com/read.php?2,37910,39601
PSPad freeware editor http://www.pspad.com
I think, this behaviour may depend on the setting Smart tabs, maybe also Real
tabs - both in the Editor settings.
--
http://forum.pspad.com/read.php?2,39593,39602
PSPad freeware editor http://www.pspad.com
Pokud vim, tak se da nove vytvorenemu souboru pouze priradit jmeno (a pripona),
napr. zvyraznovac potom funguje stejne jako pri otevreni souboru s danou
priponou (aspon u meho skriptu vytvarejiciho souobor html) to tak funguje.
--
http://forum.pspad.com/read.php?6,39329,39664
PSPad freeware
Je zapnuto zalamovani radku (menu Zobrazit; Ctrl+W)?
ve verzi 4.3.3 je asi jeste treba zvlast nastavit:
Nastaveni programu :: Prima editace
WordWrapEnabled=1
Uz delsi dobu 4.3.3 nepouzivam, mam ale pocit, ze tam s lamanim radek byly
problemy, proto se i takto nastavuje na vlastni riziko.
Ve 4.5.x
eviloverlord:
... It ignored the occurrence I had selected
Currently, the caret position is taken for the start of the search;
If
In this simple case (the same replacement) you can use the regular expression
replace, e.g.
replace:
[,;']
with
(both without quotes)
and check [x] regular expression
Another possibility would be to create an own user converter...
--
http://forum.pspad.com/read.php?2,39768,39770
PSPad
Hi, it seems to me, that this automatic replacement can depend on the encoding
set; if I save your sample in ANSI format, it is corrupted, when I open it form
disk; saving it as utf-8 seems to preserve all the box drawing characters.
--
http://forum.pspad.com/read.php?2,39760,39785
PSPad
It's strange, I can't reproduce that behaviour (PSPad 4.5.3, 2262, win XPh,
Czech);
it realy could be a matter of encoding;
which encoding is shown on statusbar with the incorect displayed text?
Unfortunately PSPad doesn't support all system codepages yet.
In which character set your character {
k vlastnimu mensimu prekvapeni zjistuji, ze muj provizorni
hledaci/nahrazovaci... skript se s timto vyrovna diky podpore unicodovych
literalu v reg. vyrazech:
je treba hledat hexa literal \u00a0
cely vyraz ke hledani
/\u00a0/g
http://www.vbr.wz.cz/pspad/poor-man-s-REplace.html pro pspad 4.5.3 -
Well, sorry, I see; I forgot, that the output format must be OEM; yes, all non
unicode formats replace these characters on my machine too.
--
http://forum.pspad.com/read.php?2,39760,39801
PSPad freeware editor http://www.pspad.com
It would rather be a question to the author of PSPad, I really don't know any
details about handling codepages in this editor.
Maybe the last possibility I can think of could be the setting: Program (part 2)
Czech ANSI = OEM conversion
otherwise it seems, that box drawing characters etc. are
The support mail is in the About dialog of PSPad
support /at/ pspad /dot/ com
or you can try to repeat the question in the bug-report thread.
--
http://forum.pspad.com/read.php?2,39760,39832
PSPad freeware editor http://www.pspad.com
Pokud jde o konverzi kodovani souboru, jen se v PSPadu v menu Format vybere
pozadovane kodovani, a da se ulozit soubor.
Jestli php generuje html stranku s meta tagem o kodovani, je treba to jeste
zmenit rucne, treba
meta http-equiv=content-type content=text/html; charset=utf-8
--
There are several settings regarding indentation; you can try
Settings :: Editor (1) :: Auto indent mode
Settings :: Editor (2) :: Real tabs // Smart tabs
maybe also in the Highlighters settings (Specification pane of each highlighter)
--
http://forum.pspad.com/read.php?2,39872,39874
PSPad
Staci normalne zakliknout Rozlisovat velikost pismen v hledacim dialogu -
nastaveni se tyka i reg. vyrazu.
--
http://forum.pspad.com/read.php?1,39890,39900
PSPad freeware editor http://www.pspad.com
Attila Kovacs:
...
The words on either side of the non-Hebrew word swap places.
I'm not sure, if it depends on the Right-to-Left
Zpravudla to takto funguje; A jaky je dosazeny vysledek? (aktualni - PSPadem
pouzivane - kodovani je ve stavovam radku)
Je chyba uz v kodu stranky, nebo az pri zobrazeni? (je upraveny meta tag -
charset?)
--
http://forum.pspad.com/read.php?1,39940,39941
PSPad freeware editor
Podle hlavicky PSPad kodovani nejspis nezjistuje, pokud je autodetekce spatne,
da se format rucne prenastavit v menu format a znovunacist soubor Ctrl+R.
Pro jednotlive soubory muze pomoci nastaveni :: Adresare a soubory ::
Zapamatovat stav souboru.
Nebo pri otevirani vice souboru ve stejnem
Hi, PSPad doesn't negative lookahead assertion in regular expressions (?!...)
If your Test is in all cases a normal string (with no metacharacters), you may
modify the following approach:
http://wiki.tcl.tk/989
cite:
pspad:
[^t][^e][^s][^t]
This won't work as expected, i guess; this expression would successfully match
only strings consisting of 4
Je aktivni zvyraznovac daneho typu souboru? Pripadne nemohlo se zmenit prirazeni
klavesovych zkratek?
Funguje to pripadne vyvolanim z menu: Nastroje :: Seznam šablon ?
--
http://forum.pspad.com/read.php?1,39968,39981
PSPad freeware editor http://www.pspad.com
Hi, the docs really seem to imply this, but I don't have any experiences in
using a macro for this.
Sofar I only use the macro commands without parameters in scripts (actually only
ecChar, ecGotoXY and ecSelGotoXY seem to require parameters)
e.g.
the following javascript function should select
You probably run the main program executable without the language files. Make
sure, you unpack the installation archive _*with subfolders*_; there
should be the subfolder Lang containng these files (including English.ini) in
the program folder of PSPad.
--
Try _$1_ etc. for backreferences in the replace field
_\1_ etc. can be used only in the search field itself.
--
http://forum.pspad.com/read.php?2,40068,40071
PSPad freeware editor http://www.pspad.com
The same here (PSPad 4.5.3, 2262, Win XPh),
the changed filename doesn't seem to depend on the original name;
the new name string is always the following:
âš
bellatrix:
aby mi pspad po skompilovani oznamil, kde mam chybu (na ktorom riadku, jej
cislo, nazov) tak, ako to robi Turbo Pascal.
V
You may check the encoding of your file and the one detected by PSPad (statusbar
- on the right); and eventually adjust it: menu Format ... and reopen the file
Ctrl+R
There may also be some problems with the font PSPad is using - it can be set in
the menu Format :: Font
--
mroswell:
Any workarounds in the meantime? I've got 4.5.2 (2241)
There are some scripts trying to deal with this:
phReplace (VBScript)
deadimp:
underscores in comments (which are italicized) are clipped from the lines and
are not displayed.
To show the invisible
abinfra:
That I can do in order that instead of seeing the characters that later I
detail, the correct ones are seen, and that are characters to draw boxes of
double line?:
BOX +-+ÂŚĂ
Using DejaVu Mono
http://dejavu.sourceforge.net/wiki/index.php/Main_Page it looks like
this
(viz http://vbr.wz.cz/pspad/boxdrawings-dejavu-mono-pspad.jpg )
If the range of the supported characters matters, I usually use this font in
PSPad.
--
http://forum.pspad.com/read.php?2,40801,40818
PSPad
On Windows the zipped ttf would be the best:
on the download page:
http://dejavu.sourceforge.net/wiki/index.php/Download
it is the file labeled:
cite:
dejavu-ttf-2.17.zip (3632622 B) TrueType fonts packed as zip
If replacing with newlines, try backwards from the end of the file.
--
http://forum.pspad.com/read.php?2,40836,40837
PSPad freeware editor http://www.pspad.com
I think, it was (maybe some older version of) CIndent script, which was reported
to behave in a similar way. Try to check the Script sub folder, if this has been
installed.
--
http://forum.pspad.com/read.php?2,40881,40887
PSPad freeware editor http://www.pspad.com
Ich glaube, im Text-Modus können die Null-Bytes in PSPad nicht dargestellt
werden (auch nicht, wenn man die Datei als Text öfftnet und dann in Hex
umschaltet).
Wie sieht es beim direkten Öffnen in Hex-Editor aus? (Kontext Menü - PSPad
Hex-öffnen o.Ä.)
===
English:
just a guess: direct
Ve vlastnim PSPadu viceradkove hledani (zatim) neni,
existuji pro to nejake skripty, napr.:
http://forum.pspad.com/read.php?2,34061
nebo (primitivnejsi, pro beta verzi 2.5.3)
http://www.vbr.wz.cz/pspad/poor-man-s-REplace.html
(jednodussi vyraz pro dany pripad by byl ve druhem skriptu napr.:
seazor:
- Selection of a line when clicking on the number doesn't select the CRLF
This behaviour is adjustable; try:
Settings ::
ancientbarkingspider:
But there is no equivalent for ecSelGotoXY that I could find.
Hi, I don't use macro in PSPad very often, but I
Joey:
c. are there any plans to implement inserting basic html tags?
With the correct highlighter active (HTML/XHTML in this case), a
An addon for multiline replacements PhReplace
http://forum.pspad.com/read.php?2,34061 supported this task nicely in
previous versions; unfortunately, there are some issues with multiple
replacements while inserting newline in the latest build.
Some time ago, I decided to write quite a dirty
1 - 100 z 1097 matches
Mail list logo