Re: Load file without losing Undo's [74352]

2020-10-22 Tema obsahu Professor Bernd
Hi, vbr.

When I tried to read a file with obj.OpenTextFile(... TristateTrue) as Unicode,
I always got an empty string. :-O


After that I suddenly thought that my INI routines also work with
obj.OpenTextFile(). I thought that this code would also generate errors now.
During a test I created a test key with ö ä ü ß ... using VBScript
obj.OpenTextFile() from an INI and output it with "Echo strText". Everything was
fine, the characters were all displayed as stored in the INI.

So it seems to be due to the different encodings when strText is written to the
editor via VBScript. - Interesting - But I've been working on it for far too
long.

I'm currently trying to integrate an AutoIt COM server into PSPad. First tries
look good. 

Thanks for your valuable support!

-- 

PSPad freeware editor https://www.pspad.com


Re: Load file without losing Undo's [74344]

2020-10-21 Tema obsahu Professor Bernd
Or can I use a new editor invisibly? So with "Set objTmp = NewEditor()" and
"objTmp.Text(sNewText)", but without a new tab being visible?

-- 

PSPad freeware editor https://www.pspad.com


Re: Load file without losing Undo's [74343]

2020-10-21 Tema obsahu Professor Bernd
[color=#808080]I have made another attempt. The current file was externally
converted to UTF-8 BOM and then read in via ADODB.Stream, etc. - Unfortunately
also unsuccessfully, there are other problems with it.[/color]

Can you implement an additional function in VBScript to reload the current file
and keep the undo's?

-- 

PSPad freeware editor https://www.pspad.com


Re: Load file without losing Undo's [74342]

2020-10-21 Tema obsahu Professor Bernd
Please excuse me, that shouldn't make your work bad. Your work is great and you
have already implemented many feature requests. Thanks a lot!

-- 

PSPad freeware editor https://www.pspad.com


Re: Load file without losing Undo's [74338]

2020-10-20 Tema obsahu Professor Bernd


Re: Load file without losing Undo's [74333]

2020-10-20 Tema obsahu Professor Bernd
pspad:

Ifvanything will modify your file from outside, stored undo is
useless.


The user starts the above-mentioned VBScript by shortcut and thus knows that the
file is modified externally. If the user does not like the result, he can use
the Undo's to return to the previous state. Then he presses Ctrl+S and his file
is back to the desired state.

Ok, here is my workaround: When the user starts the external program, the
current file is changed externally. Then I use VBScript to read the file as
"*sNewText*" and replace the old text in the active editor/tab with
"*obj.text(sNewText)*". This way all Undo's are preserved.

_Problem_: The encoding (charset) of the file. 

In order to display all characters as they should be, the encoding from the
read-in must match the encoding of the editor/tab. But this seems to be
impossible in VBScript.

So since it's not possible to reload the file without losing all Undo's, can you
please add a function for VBScript for my workaround to get the encoding for the
current editor/tab?

For example: 

obj.encoding(): string  
[color=#009900]returns editor encoding (only for saved file)[/color]

-- 

PSPad freeware editor https://www.pspad.com


Load file without losing Undo's [74331]

2020-10-19 Tema obsahu Professor Bernd
"Undo's" means: steps to undo the last changes (Ctrl+Z).

A file is loaded in an editor/tab. I did some work in the editor and there are
"Undo's". With a VBScript an external program is started which changes the file
externally (tidy). 

How can I load the modified file into the same editor/tab without losing the
"Undo's"?

I have worked on it for many hours and tried many possibilities, unfortunately
without success. :-(

-- 

PSPad freeware editor https://www.pspad.com


Re: Open current tab in Windows Explorer [74329]

2020-10-19 Tema obsahu Professor Bernd
Thanks for the tip, it works.

With the following settings the Windows Explorer is opened in the directory of
the file of the current tab and the file is highlighted in the Explorer.

[URL=https://www.directupload.net/file/d/5976/9fgcyq8e_png.htm][IMG]https://s12.
directupload.net/images/201019/temp/9fgcyq8e.png[/IMG][/URL]

-- 

PSPad freeware editor https://www.pspad.com


Re: Left panel - restore last active panel tab [74328]

2020-10-19 Tema obsahu Professor Bernd
Here is the same situation as in the other thread: 

I know the shortcut, but it does not help. Then I and every other user have to
press the shortcut every time after starting PSPad.

Can't you set it up so that when you start PSPad, it restores the state that the
panel had when you closed PSPad?

If you don't set this up, the user won't be able to open a PSPad project without
closing the left panel with a shortcut each time, and the user won't be able to
start PSPad with the desired panel tab without pressing the corresponding
shortcut each time. :-(

-- 

PSPad freeware editor https://www.pspad.com


Re: Project - hide left panel permanently [74327]

2020-10-19 Tema obsahu Professor Bernd
I know the shortcut, but it does not help. Then I and every other user have to
press the shortcut every time after starting PSPad, again and again.

Can't you set it up so that when you start PSPad, it restores the state that the
panel had when you closed PSPad?

-- 

PSPad freeware editor https://www.pspad.com


Left panel - restore last active panel tab [74323]

2020-10-18 Tema obsahu Professor Bernd
Hello.

In the _left panel_ there are different panel tabs: [i]Project, File
Explorer, FTP, Favorites, Open file list.[/i]

Could you please implement that the panel tab that is active when closing PSPad
will be the active panel tab again the next time you open PSPad?

For example, if the Favorites tab is visible when closing PSPad, the Favorites
tab should be visible again when starting PSPad.

-- 

PSPad freeware editor https://www.pspad.com


Project - hide left panel permanently [74322]

2020-10-18 Tema obsahu Professor Bernd
Example: 

I create a project in PSPad and add e.g. 4 files. Then I save the project as
"New project.ppr", close the left panel (tool panel) and then I close PSPad.
When I open "New project.ppr" with PSPad afterwards, the left panel is shown
again.

How can I make the left panel have the same visibility state when I start "New
project.ppr" with PSPad as it had when I closed PSPad?

-- 

PSPad freeware editor https://www.pspad.com


Text Diff always marks last empty line [74321]

2020-10-18 Tema obsahu Professor Bernd
Hello.

This is a _minor_ bug, not very important.

When I make a text diff, the last line is always colored if it is an empty line,
even though the two files are absolutely identical.

In the test I wrote a text, copied it and pasted it into two tabs. Then I made a
text diff with the active tab. 

[URL=https://www.directupload.net/file/d/5976/8wfngash_png.htm][IMG]https://s12.
directupload.net/images/201019/temp/8wfngash.png[/IMG][/URL]

-- 

PSPad freeware editor https://www.pspad.com


Re: Open current tab in Windows Explorer [74320]

2020-10-18 Tema obsahu Professor Bernd
pspad:

... or used tool balen and add tool:


Sorry, my English is not so good, what means: "[i]used tool balen and add
tool[/i]"?


The option with the highlighter only works for file types of this highlighter,
but the desired function should be available for all file types. (text files,
log files, ...)

Maybe you can see this as a suggestion for later, for me it is not important. I
can write a VBScript and assign a keyboard shortcut. This works for all file
types, but there is no (context) menu item. 

As I said, this is not important, you don't need to do anything else. I just
thought, if the function already exists, it would be good to know how to use it.
;-)

Thanks for the answer!

-- 

PSPad freeware editor https://www.pspad.com


Open current tab in Windows Explorer [74317]

2020-10-18 Tema obsahu Professor Bernd
Hello.

Is there a way to open the folder in Windows Explorer that contains the file
that is open in the current tab?

-- 

PSPad freeware editor https://www.pspad.com


Re: PSPad unicode 5.0.4 (531) English [74316]

2020-10-18 Tema obsahu Professor Bernd
pspad:

_News:_
Scripts files are sorted alphabetically before adding to scripting engine. Put
underscore to the file name begin if you want to compile e.g. your script
library as the first


Thanks for this feature! It works great and helps me a lot!

-- 

PSPad freeware editor https://www.pspad.com


=?windows-1250?Q?Re:_In_what_sequence_are_VBScript_files_loaded?_[74299]?=

2020-10-11 Tema obsahu Professor Bernd
Great. I look forward to it! :)

-- 

PSPad freeware editor https://www.pspad.com


=?windows-1250?Q?Re:_In_what_sequence_are_VBScript_files_loaded?_[74297]?=

2020-10-11 Tema obsahu Professor Bernd
That sounds very good! Choose the option that is easiest for you. I am happy if
it works. :)

-- 

PSPad freeware editor https://www.pspad.com


=?windows-1250?Q?Re:_In_what_sequence_are_VBScript_files_loaded?_[74295]?=

2020-10-11 Tema obsahu Professor Bernd
It seems like you can't be sure which module is actually loaded first. You
cannot rely on a specific sort order. For stable editor extensions all needed
routines have to be inserted in each module. This is currently about 400 lines
extra for each module and it makes my code confusing.

Could you include a routine that loads a given script first?

I suppose that you load all script modules in a loop. You could load the given
file (for example "Main.vbs") before the loop is executed. Pseudo code:

*[color=#bb]If FileExists("Main.vbs") Then Load("Main.vbs")[/color]*

In the loop it is possible to filter so that the "Main.vbs" is not loaded
twice:

*[color=#bb]If Not FileName = "Main.vbs" Then ...[/color]*

What do you think, is this possible or is it too much effort?

-- 

PSPad freeware editor https://www.pspad.com


=?windows-1250?Q?Re:_In_what_sequence_are_VBScript_files_loaded?_[74291]?=

2020-10-11 Tema obsahu Professor Bernd
It seems that the underscores "_" confuse the sorting. In Windows Explorer the
sorting is different than e.g. in a Zip archive opened in 7-Zip. I'm trying to
rename the modules so that a specific module is loaded first. 

Are JScripts loaded before VBScripts? Then maybe this could be a way to make
sure that a certain module is loaded before the others.

-- 

PSPad freeware editor https://www.pspad.com


=?windows-1250?Q?In_what_sequence_are_VBScript_files_loaded?_[74289]?=

2020-10-10 Tema obsahu Professor Bernd
Hello.

Assuming there are several VBScripts: [i]_Script_1.vbs, _Script__B.vbs,
AScript.vbs, 123.vbs and MyFuncs.vbs[/i]. In MyFuncs.vbs there is for example a
function "Foo(s_Var1)". To use Foo() in several VBScripts, I can call
'MyFuncs.Foo("Hello World!")' in these scripts.

But if I call Foo() in the "init" routine from these scripts, e.g. to read
paths, then in one script I get an error message because MyFuncs.vbs is not
loaded yet and in another script everything works fine.

How can I make sure that a script is loaded as first file before all other
files?

-- 

PSPad freeware editor https://www.pspad.com


Re: file specific variable hightlighting [74285]

2020-10-08 Tema obsahu Professor Bernd
Hello Jan. I also don't see any way to automatically highlight variables in AHK.
:-( 

So I suggested Halweg to help him with a workaround to manually add variables to
the highlighter (keywords3 section). With a VBScript you could simplify it. You
only need to press a keyboard shortcut to add the highlighted word in keywords3
section and call "reloadUserHighlighter".

This could help halweg (and you would have no work with it). :-P

-- 

PSPad freeware editor https://www.pspad.com


Re: file specific variable hightlighting [74283]

2020-10-07 Tema obsahu Professor Bernd
I sent you a PM. If you speak German, it will be easier with it. If you don't
speak German, please let me know here.

-- 

PSPad freeware editor https://www.pspad.com


Re: file specific variable hightlighting [74281]

2020-10-07 Tema obsahu Professor Bernd
halweg:

Variables are everything that isn't any other 
thing.


Can you post a screenshot? And how are the variables declared? Maybe I can find
a solution.

-- 

PSPad freeware editor https://www.pspad.com


Re: Control Z [74231]

2020-09-24 Tema obsahu Professor Bernd
Hello Esgrimidor.

I don't know if this message still reaches you, but if you still need help with
your problem, I can try to help you, for example with a script instead of a
macro. Just let me know. :)

-- 

PSPad freeware editor https://www.pspad.com


Re: Marking hash character with a double-click [74117]

2020-08-18 Tema obsahu Professor Bernd
It works. Thanks a lot.

-- 

PSPad freeware editor https://www.pspad.com


Re: PSPad unicode 5.0.4 (521) English [74116]

2020-08-18 Tema obsahu Professor Bernd
One day after vacation and already in the middle of work again. :) Take your
time. Thank you for your good work!

-- 

PSPad freeware editor https://www.pspad.com


Re: PSPad unicode 5.0.4 (517) English [74072]

2020-08-06 Tema obsahu Professor Bernd
pspad:

What is strange the tab isn't marked.


Highlighting the active tab is a very useful feature. It would be nice if you
could fix that. 


pspad:

It's underlined, but with black line. I will fix it.


Thanks. :)

pspad:

I found a problem with new empty child open after PSpad start. Child isn't
maximized.
It will be fixed in the next build.



This is good news! I just noticed that if the child is not maximized, the error
jumping via LogParser does not jump far enough, so LogWin hides the error line.
Thanks.

-- 

PSPad freeware editor https://www.pspad.com


Re: Marking hash character with a double-click [74071]

2020-08-06 Tema obsahu Professor Bernd
Sorry, the auto-correction of the online translator has struck. Correctly it
should say:

Could you please set that when you double-click on a preprocessor, the hash sign
is also _selected_? :)

-- 

PSPad freeware editor https://www.pspad.com


Marking hash character with a double-click [74065]

2020-08-05 Tema obsahu Professor Bernd
In AutoIt code, a preprocessor directive is introduced with a hash sign, for
example, [color=#ff00ff]#include[/color]. Unfortunately, a double-click does not
select the hash sign. We had a similar case
here (viz https://forum.pspad.com/read.php?2,72964,page=2#msg-73165 ) with
the dollar sign.

[URL=https://www.directupload.net/file/d/5902/kk9kgawh_png.htm][IMG]https://s12.
directupload.net/images/200805/temp/kk9kgawh.png[/IMG][/URL]

Could you please set that when you double-click on a preprocessor, the hash sign
is also highlighted? :)

-- 

PSPad freeware editor https://www.pspad.com


Re: PSPad unicode 5.0.4 (517) English [74064]

2020-08-05 Tema obsahu Professor Bernd
An additional thing: If you set MarkCurrentFileTab=1, the name in the tab will
be underlined in the skins "Windows" and "Carbon", but not in the skin
"SlateGray".

Tested in a _not_ fresh installation.

-- 

PSPad freeware editor https://www.pspad.com


Re: PSPad unicode 5.0.4 (517) English [74063]

2020-08-05 Tema obsahu Professor Bernd
To be on the safe side, I made another fresh installation with full version
5.0.3 (377). Before I started PSPad I copied a PSPad_MU.ini with MultiUser=0 to
it. Then I started PSPad and added tabs.

[URL=https://www.directupload.net/file/d/5902/il96j39i_png.htm][IMG]https://s12.
directupload.net/images/200805/temp/il96j39i.png[/IMG][/URL]

Then I closed PSPad and copied version 5.0.4 (407) beta over it. 

[URL=https://www.directupload.net/file/d/5902/nqqyuvs4_png.htm][IMG]https://s12.
directupload.net/images/200805/temp/nqqyuvs4.png[/IMG][/URL]

In this fresh installation I did not change any other settings.

PSPad.ini
HighlightCurrentFileTab=1
MarkCurrentFileTab=0

Settings Dialog Program-1
File Tabs Style: Tabs

-- 

PSPad freeware editor https://www.pspad.com


Re: PSPad unicode 5.0.4 (517) English [74061]

2020-08-05 Tema obsahu Professor Bernd
Up to version 5.0.4 (403) beta the current tab was highlighted, but as of
version 5.0.4 (407) beta it was no longer highlighted.

[URL=https://www.directupload.net/file/d/5902/e5vicmtt_png.htm][IMG]https://s12.
directupload.net/images/200805/temp/e5vicmtt.png[/IMG][/URL]

-- 

PSPad freeware editor https://www.pspad.com


Re: PSPad unicode 5.0.4 (517) English [74059]

2020-08-05 Tema obsahu Professor Bernd
_Current file tab highlight_

Hello. Unfortunately the current tab is not highlighted. My settings:

_PSPad.ini_
HighlightCurrentFileTab=1
MarkCurrentFileTab=1

_Settings Dialog Program-1_
File Tabs Style: Tabs

What can I do to highlight the current tab?

-- 

PSPad freeware editor https://www.pspad.com


Re: Highlighting all occurrences of selected text in the active editor [738= 84]

2020-06-26 Tema obsahu Professor Bernd
pspad:

If you need good programmer font, try Liberation Mono.


Good tip! :)

-- 

PSPad freeware editor https://www.pspad.com


=?windows-1250?Q?Re:_does_pspad_autosave_unsaved_documents_if_you_crash?_[73690]?=

2020-06-04 Tema obsahu Professor Bernd
I wanted to help you, I didn't mean it personally, and I apologize if it sounded
that way.

I understand what this is about for you, but please try to see things from the
perspective of other users. Let me try to put it another way:

If you have made changes to a document, close the editor and DO NOT want to save
the changes: How do you do that if the editor automatically saves without asking
you?

-- 

PSPad freeware editor https://www.pspad.com


Re: Loading of user highlighter colors does not work anymore [73676]

2020-06-01 Tema obsahu Professor Bernd
pspad:

If you have any idea, how to handle it all todether, I am open to do it.


Today I studied the PSPad system, which handles color schemes. And I'm like,
"Wow, this is complex!" Respect for your work!

Ok, I don't know if I can improve on that, it's really good. But maybe I can
come up with an idea that will inspire your concept. I would be happy to send
you my ideas.

If you want, send me a description of the task and how you want to handle the
things. Maybe with rules and hints about folders and files. In the forum the
notification does not work, so please send me the description by _e-mail_,
for better communication. I am looking forward to it. :)

Regards,
Bernd.

-- 

PSPad freeware editor https://www.pspad.com


Re: Loading of user highlighter colors does not work anymore [73657]

2020-05-30 Tema obsahu Professor Bernd
Thank you very much for your information! 

You explained to me how to save and load my color schemes with the new version.
:) You showed me how to change my "old" color schemes to load them. :) I can
work with that. 

That was very friendly and helped me.

Regards,
Bernd.

-- 

PSPad freeware editor https://www.pspad.com


Re: Loading of user highlighter colors does not work anymore [73654]

2020-05-30 Tema obsahu Professor Bernd
pspad:

Yes. All user highlighters will have same color settings after loading scheme. 
If you have idea, how to maintain color scheme for 180+ user languages, I am
open to any idea.


Thank you very much for your trust. 

For my understanding: Why not use the old system? One section in the ini file
for each language. You don't need to handle 180+ languages, only 10 for the user
highlighter slots. Or am I wrong?

-- 

PSPad freeware editor https://www.pspad.com


Re: Loading of user highlighter colors does not work anymore [73622]

2020-05-29 Tema obsahu Professor Bernd
pspad:

Put your user highlighter AutoIt to Slot 10 instead of the slot 1.
Current build takes colors from the slot 10 and save it into scheme file.


I made it that way and it works great for new color schemes. First I saved the
current color scheme as "a_new1". Then I changed the color for "Comment" to
orange and saved this color scheme as "a_new2". With "Load" I can switch between
these two color schemes, I can load "a_new1" or "a_new2". 

But I can't load my own color schemes anymore, which I could still load in PSPad
5.0.4 (403). Will this work again in the next build?

pspad:

Next build will take slot 1 as default for user highlighter color schemes, so
you will need to move your Autoit back to Slot 1.


What about the other slots then? Do all slots have to use the same color scheme?
For example, if I use "AutoIt3" in slot 1 and "Pure Basic" in slot 2, will the
same color scheme be used for both languages? Can I no longer use different
color schemes?

Thanks for your explanations. :)

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


Re: Loading of user highlighter colors does not work anymore [73619]

2020-05-29 Tema obsahu Professor Bernd
Hello Jan.

I apologize very much! Yesterday I had a lot of private trouble and I was tired.
Now I have slept one night and I am trying to correct my mistake: I used the
terms wrong. 

I wrote: _User highlighter_
but I meant: [color=#99]User Highlighter / [/color] _Color Scheme_

Loading and using the user highlighter works. What does not work is
[color=#aa]_saving and loading the color schemes_.[/color]

My question must therefore be:

In "Settings" / "Highlighter Settings" in the tab "Colors" - How can I save and
load my custom color schemes as it was done in PSPad version 5.0.4 (403)?

[URL=https://www.directupload.net/file/d/5834/56wdd2zq_png.htm][IMG]https://s12.
directupload.net/images/200529/temp/56wdd2zq.png[/IMG][/URL]

I apologize once again for the confusion and hope I was able to describe it well
now. :)

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


Re: Loading of user highlighter colors does not work anymore [73612]

2020-05-28 Tema obsahu Professor Bernd
I can't say I understood everything, but your instructions worked:
pspad:

Open your style file.
Delete whole [] section
Rename your highlighter section to []



But why this break in this version? And without any hint for the user. Is it a
bug, or is it something you wanted? Do I have to change all my schemes manually?


Even saving does not work. If I set up a scheme and click "Save", it will be
saved as in the previous PSPad version. That way I can no longer load it.
Instead the [] section is loaded.

The instructions you gave me are a workaround, but how can I save and reload my
own schemes?

Please don't be angry, I just don't understand it.

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


Re: Loading of user highlighter colors does not work anymore [73610]

2020-05-28 Tema obsahu Professor Bernd
pspad:

Do you see your user highlighter in the list of highlighters?


Yes.
[URL=https://www.directupload.net/file/d/5833/a34e3pt9_png.htm][IMG]https://s12.
directupload.net/images/200528/temp/a34e3pt9.png[/IMG][/URL]
When I click on "Load" an unknown user highlighter is loaded instead of my user
highlighter.

-- 

PSPad freeware editor https://www.pspad.com


Re: Loading of user highlighter colors does not work anymore [73608]

2020-05-28 Tema obsahu Professor Bernd
I'm sorry, I'm having trouble understanding. There was a translation error, so
my penultimate post said "Skin", but my request has NOT to do with skins, but
with user highlighters. Can we start from the beginning? I try to formulate it
better. :)

- In PSPad 5.0.4 (403) I was able to load my custom user highlighters without
any problems.
- I am updating PSPad from 5.0.4 (403) to 5.0.4 (407). 
- Then I load a custom user highlighter. (See post #1: steps to reproduce). 
- Instead of _my_ user highlighter, an unknown user highlighter is loaded.

- Then I load another one of my user highlighters, but nothing happens, the
unknown user highlighter remains.

My question is: How can I load my custom user highlighters, as it was until
PSPad version 5.0.4 (403)?

-- 

PSPad freeware editor https://www.pspad.com


Re: Loading of user highlighter colors does not work anymore [73606]

2020-05-28 Tema obsahu Professor Bernd
Sorry, translation errors. Not skin, but user highlighter was meant.

-- 

PSPad freeware editor https://www.pspad.com


Re: Loading of user highlighter colors does not work anymore [73605]

2020-05-28 Tema obsahu Professor Bernd
Wow, that's a lot of things to think about. I can see why you love Skins. :-D 
Thanks for sharing your thoughts. :)

What about the problem with not being able to load user skins anymore?

-- 

PSPad freeware editor https://www.pspad.com


Re: PSPad unicode 5.0.4 (407) English [73598]

2020-05-27 Tema obsahu Professor Bernd
Loading of user highlighter colors does not work anymore

I have created a [url=https://forum.pspad.com/read.php?2,73597]thread on the
topic[/url].

.

*And by the way, is it possible that the server clock is wrong?* ;-) I
posted this post at 21:01.

-- 

PSPad freeware editor https://www.pspad.com


Loading of user highlighter colors does not work anymore [73597]

2020-05-27 Tema obsahu Professor Bernd
Hello.

When I load a user highlighter color scheme I created myself, an unknown
(default?) color scheme is loaded, but not the one I selected. When I load
different color schemes, always the same unknown one is loaded. This applies to
the program settings and the highlighter settings.

Steps to reproduce

- Open a file with a _user_ highlighter, such as .au3, .pb, etc.
- Write a line with a comment character.
- In Settings / "Highlighters Settings" in the tab "Colors" change the color for
"comment" to [color=#ff9900]orange[/color].
- => the color is taken over in the editor. 
- In the field "Color Scheme" enter a name, e.g. "a1" and save the color
scheme.
- Then load the color scheme => the unknown color scheme is loaded, NOT the
saved one. The color for "Comment" is [color=#99]gray-like[/color].

The same happens if I save several color schemes: a1, a2, a3, ... No matter
which one I load, the unknown color scheme is always loaded.

[color=#aa]What do you think about the following idea?[/color] (It's just a
suggestion.) :)
 
- Split the settings into "Colors" and "Skins". Save the settings for Skins in
the folder "Skin", the highlighter colors in the folder "Colors" and the general
colors for the editor in the folder "Colors\General". [color=#99](This way
there are no compatibility issues with previous PSPad versions).[/color]

- Restore the previous code for setting user highlighters.

- In Settings / Program Settings, create a separate Skins area in the left
dialog box directly under Colors. In this area you can only load, save (and
create?) skins. Skins are only for the PSPad window and controls, but not for
editor and highlighter.

- In Settings / Program Settings area "Colors" add "Load" and "Save" and save
the color settings in the folder "Colors\General".
[color=#ff9900] or:[/color]
- In Settings / Program Settings area "Colors" delete the section "Color Scheme"
and save the colors from "Colors" with each user highlighter.

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


=?windows-1250?Q?Re:_does_pspad_autosave_unsaved_documents_if_you_crash?_[73594]?=

2020-05-27 Tema obsahu Professor Bernd
lgk:

(Just two examples: Web browser will not ask you to save tabs with correct
settings. They will just do it. Another well known text editor as well.)



1. A browser does not save files.
2. A text editor that saves when closing without asking me would be a disaster
for me!

Ask yourself: If you made changes to a document, close the editor and do NOT
want to save the changes, what would you say if the editor saves the document
without asking you?

lgk:

I use text editors not only for sophisticated stuff like programming, but also
for things like quick notes and quick text changes, that wouldn't work within
other programs. So I might write a quick shopping list, some ideas, reformat
some list, etc. Of course it's possible that I get interrupted and then windows
wants to restart or whatever. However, what I really want (and what I am used to
within another editor) is to save unnamed files. It makes life really easier if
you can have temporary files and just save them if you want to and not because
you are forced to.


lgk:

Well, why should I give it a crazy name all the time? Then I need to select a
folder and later I need to delete the file too in most cases..

Why PSPad can't do that for me?


Because you are not the only user? 

David in Delta offered you a solution, but you did not understand it. Or you
did, but would rather let others do the work? 

It's very simple: Create a file once (not every time!) on your desktop and name
it e.g. "My notes.txt". Then set the backup settings in PSPad as you like. Now
the file will be backed up automatically every x minutes. If you open it and
don't need the old content anymore, press Ctrl+A and Del. Then you write the new
text. Use your imagination to meet your taste. ;-)

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


Re: PSPad unicode 5.0.4 (403) English [73541]

2020-05-23 Tema obsahu Professor Bernd
Hello Jan.

It seems that highlighting related brackets does not work. Can you confirm
that?

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


=?windows-1250?Q?Re:_reloadUserHighlighter_broken?_[73540]?=

2020-05-23 Tema obsahu Professor Bernd
I understand that and in my case a deleted syntax file is only a small problem
because it rarely appears. Now that I know what the problem is, I can handle it.


Important for my purposes is that "reloadUserHighlighter" works if something in
the syntax file has changed.  I use this in several script functions, and with
your information it works great! 

Thank you for your help and information.

Regards,
Bernd.

-- 

PSPad freeware editor https://www.pspad.com


=?windows-1250?Q?Re:_reloadUserHighlighter_broken?_[73538]?=

2020-05-22 Tema obsahu Professor Bernd
Now that you are writing this, it occurs to me that this was the case when it
worked for me some time ago. Now I have found the problem:

_[color=#ff]Case 1[/color]_: The error does NOT occur if the
AutoIt3.ini exists and is only changed by the backup.

_[color=#ff6600]Case 2[/color]_: The error occurs if there is no
AutoIt3.ini and it is created from the backup.

- Close PSPad.
- Move the AutoIt3.ini from the Syntax folder to another folder.
- Open PSPad with an au3 file with code inside.
- Move the AutoIt3.ini back into the Syntax folder.
- Execute the VBScript command "reloadUserHighlighter".
- The user highlighter will NOT be executed.

If you want to fix this, that's fine, but not necessary. For me it is sufficient
that reloadUserHighlighter works for _[color=#ff]case 1[/color]_ and to
know where the problem is. _[color=#ff6600]Case 2[/color]_ will probably
occur rarely.

Thank you very much for testing and for helping me to identify the problem.
Thanks for your effort!

-- 

PSPad freeware editor https://www.pspad.com


=?windows-1250?Q?Re:_reloadUserHighlighter_broken?_[73535]?=

2020-05-22 Tema obsahu Professor Bernd
I have now found out that the following code loads the user highlighter. 

  Dim obj
  Set obj = NewEditor()
  obj.assignActiveEditor()

  obj.highlighter("AutoIt3")
  reloadUserHighlighter("AutoIt3")

Unfortunately not the current highlighter is used, but a "built-in" one.

To explain the background.

When PSPad starts, it checks the integrity of the files of my addon. If
necessary, the existing file "...\Syntax\AutoIt3.ini" is replaced by a backup.
This restored file should now be loaded as a user highlighter, but probably a
"built-in" one will be loaded instead.

I suspect PSPad loads the syntax files on startup and the restored syntax file
is ignored. Could you change the "reloadUserHighlighter" command to load the
restored file?

-- 

PSPad freeware editor https://www.pspad.com


=?windows-1250?Q?reloadUserHighlighter_broken?_[73534]?=

2020-05-22 Tema obsahu Professor Bernd
Since a while the VBScript function "reloadUserHighlighter" does not work
anymore. Is it broken or am I using it incorrectly? 

My call: reloadUserHighlighter("AutoIt3")

-- 

PSPad freeware editor https://www.pspad.com


Re: Settings for highlighting all occurrences of selected text [73532]

2020-05-22 Tema obsahu Professor Bernd
pspad:

It was first implementation of this functionality, I await lot of comments and
there will be lot of optimalizations. e.g. whitespace on the begin won't be
highlighted at all e.t.c.
Same as following feature - skins. I don't like it, but users wants it. It's
ugly, slow, ...



I know what you mean. Most of the time comments are posted to complain, but if
everything works, there are no comments. For this reason I want to thank you
very much for making this important feature possible, which benefits all
languages. Thanks for your good work!

I especially love the functionality that I can select multiple words and the
highlighting of occurrences even in comments!

I am curious what other users will say and how this feature will evolve.

Regards,
Bernd.

-- 

PSPad freeware editor https://www.pspad.com


Re: Settings for highlighting all occurrences of selected text [73530]

2020-05-22 Tema obsahu Professor Bernd
pspad:

Different color for occurences is already implemnted. I did it today. Font
color will stay as standard font 
color.

Thanks a lot!

pspad:

I though about the min, length, I tested it, but when you want to seach for any
special char, is better to highlight from 1 char. We will see for other users
reaction. I don't want to make another tons of options


I understand the idea of searching for special chars, but if you highlight from
1 character upwards, you will highlight an incredible amount. Already from 2
characters on, much less hits are found, and the editor is not so full of
highlights. If the user can choose the minimum length, everyone can set it as
they like.

.
_- Highlighting is case sensitive_

Can you please switch that to case insensitive? So that different spellings are
also found, e.g: "*[color=#ff]MSGBOX, MsgBox, msgbox,[/color]* ..." or
"[i][color=#ff]IF, If, if; THEN, Then, then; OR, Or, or; AND, And,
and;[/color][/i] ..." etc.

Sometimes you write like this, sometimes like this. Or if you are working with
several people on a script, everyone writes differently. Therefore all spellings
should be found.

.
_- Highlighting if only whitespace is selected._

Can you change it so that nothing is highlighted if the selection is whitespace
only? On the screenshot you can see how chaotic this can look, if you select
only 1 space for example.

[URL=https://www.directupload.net/file/d/5827/it3lxejj_png.htm][IMG]https://s12.
directupload.net/images/200522/temp/it3lxejj.png[/IMG][/URL]

-- 

PSPad freeware editor https://www.pspad.com


Settings for highlighting all occurrences of selected text [73523]

2020-05-21 Tema obsahu Professor Bernd
Hello.

Thanks for this really important feature, it's a great help!

Could you please add 2 settings to the feature? 

_- Minimum length from which is highlighted._

This is good, so that it is not already highlighted when you select 1 letter. It
doesn't flicker so much if the highlighting starts only after you have selected
at least 3 letters.


[b]- Different colors for highlighting occurrences than for the selected
text.[/b]

On the one hand this is important to make the feature "quieter" by giving the
highlighting a subtle color, on the other hand it makes it easier to see which
is the selected text. For example, if you have scrolled a little, you will know
better which is the text you are currently editing. 

I have created two photomontages as suggestions.

[URL=https://www.directupload.net/file/d/5826/4w2jnyol_png.htm][IMG]https://s12.
directupload.net/images/200521/temp/4w2jnyol.png[/IMG][/URL] 
[URL=https://www.directupload.net/file/d/5826/qw5sfhhm_png.htm][IMG]https://s12.
directupload.net/images/200521/temp/qw5sfhhm.png[/IMG][/URL]

This could also be useful: 

_- No highlighting if only spaces/tabs are selected._

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


Re: PSPad unicode 5.0.4 (403) English [73522]

2020-05-21 Tema obsahu Professor Bernd
pspad:

_Fixes:_
cripting - if script runs when PSPad closes, message with script error appeared



Hello. Unfortunately the error message is still there. Here is an example code
that is more realistic. (No loop in "Init".)

' TestLoop.vbs
const module_name  = "TestLoop" 'this name must be unique !!!
const module_ver   = "0.001"'version

sub MyTestLoop()
  Dim MyDateTime
  Do
MyDateTime = Now()
Call logSetLine(0, MyDateTime)
' do something else
Sleep(10) 
  Loop
end sub

' name "Init" is required, its called automatically during initialization to
create menu items
sub Init
  Call logAddLine("Press Ctrl+U to start the loop")
  addMenuItem "Test-Funktion", "TestMenu", "MyTestLoop", "Ctrl+U"
end sub


Suggestion: If the error message cannot be avoided, you could use
"Application.MessageBox". With this MessageBox I can read the error message (the
message text) and handle the problem myself. (With the other MsgBoxes I cannot
read out the Message Text (e.g. ShowMessage and MessageDlg).

Example: Application.MessageBox('Welcome.', 'Test', MB_OK);

-- 

PSPad freeware editor https://www.pspad.com


Re: Colorize the log window (Type Memo) [73510]

2020-05-20 Tema obsahu Professor Bernd
Maybe you could add a RichEdit, including log parser (or replace the memo)? In
VBScript "logSetTypeRiEd", "logSetLineColor(Color)", "logSetLineBKColor(Color)",
...

Log parser photomontage
[URL=https://www.directupload.net/file/d/5826/8bi4wvvs_png.htm][IMG]https://s12.
directupload.net/images/200521/temp/8bi4wvvs.png[/IMG][/URL]

[color=#ff6600]This is NOT an important feature.[/color] If it is too much work,
put it at the bottom of your todo list. ;-)

-- 

PSPad freeware editor https://www.pspad.com


Re: Colorize the log window (Type Memo) [73509]

2020-05-20 Tema obsahu Professor Bernd
At the beginning of a line you can write different characters (always 1
character), then the line will be shown in a corresponding color. Depending on
the importance of the line, the line can be shown in the corresponding color.

[URL=https://www.directupload.net/file/d/5825/htht45iq_png.htm][IMG]https://s12.
directupload.net/images/200520/temp/htht45iq.png[/IMG][/URL]

-- 

PSPad freeware editor https://www.pspad.com


Re: Colorize the log window (Type Memo) [73507]

2020-05-20 Tema obsahu Professor Bernd
Too bad. But thanks for the answer!

-- 

PSPad freeware editor https://www.pspad.com


Colorize the log window (Type Memo) [73505]

2020-05-20 Tema obsahu Professor Bernd
For compiling you can set the type of log win to Memo. The memo is a RichEdit.
Is there a way to color the lines of the RichEdit differently?

-- 

PSPad freeware editor https://www.pspad.com


Re: Highlighting all occurrences of selected text in the active editor [735= 04]

2020-05-20 Tema obsahu Professor Bernd
Wow, that's great!

-- 

PSPad freeware editor https://www.pspad.com


Re: PSPad unicode 5.0.4 (400) English [73487]

2020-05-19 Tema obsahu Professor Bernd
Hello MadCompie.

Do you use PSPad 64 bit or 32 bit? I use PSPad 32 bit. There is no error with
me. 

As you have described, I have only opened 1 PSPad window and only 1 txt file
with "Hello World" in it. Then I pressed F12 and saved the file. No error
message appears. I repeated the same with an empty txt file, even without
errors.

-- 

PSPad freeware editor https://www.pspad.com


Re: Error when closing PSPad while a VBScript loop is running [73478]

2020-05-18 Tema obsahu Professor Bernd
You mean my example script? If so, that was really just an example. In my real
script, loops are called by shortcut, but never in the init.

pspad:

Anyway, the message won't be shown on exit



Did you fix the bug? Can I use loops that are called by shortcut and still run
when PSPad is closed?

-- 

PSPad freeware editor https://www.pspad.com


Error when closing PSPad while a VBScript loop is running [73475]

2020-05-18 Tema obsahu Professor Bernd
If you quit PSPad while a VBScript loop is running, an error message appears
every time. Can you please fix it?

[URL=https://www.directupload.net/file/d/5823/p6ixs2tf_png.htm][IMG]https://s12.
directupload.net/images/200518/temp/p6ixs2tf.png[/IMG][/URL]


VBScript Example

' TestLoop.vbs
const module_name  = "TestLoop" 'this name must be unique !!!
const module_ver   = "0.001"'version

sub MyTestLoop()
  Do
Sleep(100)
  Loop
end sub

' name "Init" is required, its called automatically during initialization to
create menu items
sub Init
  MyTestLoop()
end sub


-- 

PSPad freeware editor https://www.pspad.com


Re: Search in the editor scrolls too far [73474]

2020-05-16 Tema obsahu Professor Bernd
That's great! Very valuable! Thank you very much! :)

-- 

PSPad freeware editor https://www.pspad.com


Re: AutoIt3 Highlighter Error with mixed quotes [73473]

2020-05-16 Tema obsahu Professor Bernd
Wow, very good work! :)

-- 

PSPad freeware editor https://www.pspad.com


Re: AutoIt3 Highlighter Error with mixed quotes [73459]

2020-05-15 Tema obsahu Professor Bernd
Thanks.

-- 

PSPad freeware editor https://www.pspad.com


Re: AutoIt3 Highlighter Error with mixed quotes [73457]

2020-05-15 Tema obsahu Professor Bernd
AutoIt uses single quotes and double quotes for strings. Very useful to use the
respective other quote in code without escaping it.

Example

[URL=https://www.directupload.net/file/d/5820/s7e7n5nz_png.htm][IMG]https://s12.
directupload.net/images/200515/temp/s7e7n5nz.png[/IMG][/URL]

-- 

PSPad freeware editor https://www.pspad.com


Re: AutoIt3 Highlighter Error with mixed quotes [73454]

2020-05-15 Tema obsahu Professor Bernd
Is there a setting I can use to fix the problem?

-- 

PSPad freeware editor https://www.pspad.com


Re: Error in AutoIt3 Highlighter on comment [73452]

2020-05-15 Tema obsahu Professor Bernd
In AutoIt, the Comment block continues to the end of line even after the end
character "#ce".

-- 

PSPad freeware editor https://www.pspad.com


Re: Search in the editor scrolls too far [73438]

2020-05-13 Tema obsahu Professor Bernd
Here are the screenshots

[URL=https://www.directupload.net/file/d/5818/ow2qbzad_png.htm][IMG]https://s12.
directupload.net/images/200513/temp/ow2qbzad.png[/IMG][/URL]

[URL=https://www.directupload.net/file/d/5818/7ugdqa2t_png.htm][IMG]https://s12.
directupload.net/images/200513/temp/7ugdqa2t.png[/IMG][/URL]

-- 

PSPad freeware editor https://www.pspad.com


Re: Synchronize the Code Explorer with the Editor [73435]

2020-05-13 Tema obsahu Professor Bernd
Ok, then please create a shortcut to the Sync function, or better a VBScript
command to which I can assign a shortcut myself.

-- 

PSPad freeware editor https://www.pspad.com


Re: Error in AutoIt3 Highlighter on comment [73434]

2020-05-13 Tema obsahu Professor Bernd
Could you also take the opportunity to have the block comment highlighted until
the end of the line?

For example

now it is:

[color=#00A000]#cs ---
  any text
#ce[/color] [color=#ff]---[/color]

but it should be:

[color=#00A000]#cs ---
  any text
#ce ---[/color]

-- 

PSPad freeware editor https://www.pspad.com


Re: Synchronize the Code Explorer with the Editor [73431]

2020-05-13 Tema obsahu Professor Bernd
I understand. How about an automatic sync that the user can turn on and off in
the settings? Standard: Off.

Would automatic synchronization be possible for functions only? (Not for
variables, labels, etc.)

If none of these is possible, please create a VBScript command to which the user
can assign a shortcut.

-- 

PSPad freeware editor https://www.pspad.com


Re: Error in AutoIt3 Highlighter on comment [73430]

2020-05-13 Tema obsahu Professor Bernd
VLisp comment works fine. Thank you very much.

-- 

PSPad freeware editor https://www.pspad.com


Re: find first and last [73427]

2020-05-13 Tema obsahu Professor Bernd
If you need help, I can help. I've been working on this feature for a long time
and I'm sure I can help. For example with pseudo code that shows how to
highlight all occurrences of marked text.

-- 

PSPad freeware editor https://www.pspad.com


AutoIt3 Highlighter Error with mixed quotes [73426]

2020-05-13 Tema obsahu Professor Bernd
If single and double quotation marks are used, there is a bug in the
highlighter.

[URL=https://www.directupload.net/file/d/5818/lnrn3poh_png.htm][IMG]https://s12.
directupload.net/images/200513/temp/lnrn3poh.png[/IMG][/URL]

-- 

PSPad freeware editor https://www.pspad.com


Error in AutoIt3 Highlighter on comment [73421]

2020-05-13 Tema obsahu Professor Bernd
Text after comment characters is NOT highlighted as comment if the comment
character ";" is directly (without spaces) after another character.

[URL=https://www.directupload.net/file/d/5818/pgh62eiv_png.htm][IMG]https://s12.
directupload.net/images/200513/temp/pgh62eiv.png[/IMG][/URL]

-- 

PSPad freeware editor https://www.pspad.com


Synchronize the Code Explorer with the Editor [73420]

2020-05-13 Tema obsahu Professor Bernd
In the Code Explorer you can press a button to synchronize the editor with the
Code Explorer. Instead of searching for the tiny button and pressing it every
time, the synchronization should be done automatically when you set the caret to
another function in the editor.

-- 

PSPad freeware editor https://www.pspad.com


Search in the editor [73419]

2020-05-13 Tema obsahu Professor Bernd
Search in the editor

If a search term is located on the right in the visible area of the editor, F3
automatically scrolls to the right so that the search term comes to the middle
of the editor ("Default" setting). This moves the right, important part of the
document out of the visible area, while on the left there is much, much empty
space. How can I set the setting to scroll only so far that the search term is
visible at the right margin?

-- 

PSPad freeware editor https://www.pspad.com


misspelling in Code Explorer [73418]

2020-05-12 Tema obsahu Professor Bernd
[URL=https://www.directupload.net][IMG]https://s12.directupload.net/images/20051
3/okr6dfd7.png[/IMG][/URL]

-- 

PSPad freeware editor https://www.pspad.com


Re: find first and last [73417]

2020-05-12 Tema obsahu Professor Bernd
Today is the 2020-05-13, my post
[url=https://forum.pspad.com/read.php?2,73355,73397#head]"Highlighting all
occurrences of selected text in the active editor"[/url] is from 2020-05-05, so
more than 1 week old. You did not answer. But you answer maki almost every day.
maki doesn't know the word "please", nor "thank you". I say: _Please_ build
my requested feature into PSPad, it is for all languages and many users will be
happy!

-- 

PSPad freeware editor https://www.pspad.com


Re: find first and last [73415]

2020-05-12 Tema obsahu Professor Bernd
@pspad

Why do you answer this impudent, disrespectful user, but do not answer me! Do I
have to ask as disrespectfully as maki, or what should I do?

-- 

PSPad freeware editor https://www.pspad.com


Re: Highlighting all occurrences of selected text in the active editor [734= 13]

2020-05-12 Tema obsahu Professor Bernd
Vany:

I would be happy if this could work, no problém. So it is up to Honza to
implement it some day.



Many users would be happy, because _it is a feature for all languages!_ The
users have been asking for it for years. I also don't understand why Honza
doesn't answer. Thank you very much for your answer! :)

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


Re: Highlighting all occurrences of selected text in the active editor [733= 97]

2020-05-11 Tema obsahu Professor Bernd
Vany:

see topic https://forum.pspad.com/read.php?7,73278

I am afraid it is far from real to be done.



_@Vany @feef_

Why not? For Jan it is not a big effort, the functions are already there!

I have already programmed this feature for AutoIt, and it works! I programmed it
from the outside, but there are some drawbacks, e.g. that I lose a whole
highlighter section, or that every time I highlight text, the hard drive is
accessed, or it only works for AutoIt, but not for other languages, and much
more.

It's NOT hard to build it in internally from PSPad! Outside I have no events, I
have to work with tricks. But Jan has events, it's much easier. The functions
are also available to him: Searching inside the active editor, and highlighting
"whatever he wants". 

>From the outside, I used VBScript and AutoIt-Script to monitor if text is
highlighted, then I wrote it into the highlighter file and all occurrences were
highlighted. If no text was marked, I removed the entry from the highlighter
file. This is complicated and requires write access to the file and the hard
disk each time.

>From inside PSPad this is much easier! No reason not to include such an
important feature in PSPad!

_@PSPad_

Please Jan, I have already sent you several eMails about this feature and have
made several requests here in the forum. But you have not answered any. Please
build this feature into PSPad. Almost all other editors have this feature, but
not PSPad. PSPad has many other strengths that other editors do not have. I love
PSPad. But this is a really important feature that PSPad needs, and it's for all
languages.

Bernd.

Translated with www.DeepL.com/Translator (free version)

-- 

PSPad freeware editor https://www.pspad.com


Re: Regex "Change Number Format" [73373]

2020-05-10 Tema obsahu Professor Bernd
What does this have to do with PSPad? Why are you so rude, disrespectful and
pushy? You annoy us! Please go away! :-(

-- 

PSPad freeware editor https://www.pspad.com


Re: Please help! [73372]

2020-05-10 Tema obsahu Professor Bernd
_@maki_

Why do you talk so disrespectfully to the author of PSPad? Please stop bugging
us. You get on my nerves! 

How old are you? Are you 10 years old? Jesus Christ, can't you understand when
you're annoying? 

If you think PSPad is so bad, go away!
.

_@PSPad_

If you answer maki, it's a waste of time! If you don't answer him, then what?
Will he leave the forum? Yay! Why do you answer such a troll, but leave my posts
unanswered?

-- 

PSPad freeware editor https://www.pspad.com


Highlighting all occurrences of selected text in the active editor [73355]

2020-05-05 Tema obsahu Professor Bernd
Hello Jan.

I would like to ask you for a very important feature:

_Highlighting all occurrences of selected text in the active editor._

Unfortunately I can't create it from the outside. I have tried many things, but
there are always unpleasant disadvantages. The feature is not only for AutoIt,
but for all languages and many other users would love it. :-) Could you please
be so kind to add the feature? It is really important and I would be very happy.


Description of the feature

- Text can be selected in the editor with the mouse or the keyboard.
- A whole word can be selected (e.g. "StringInStr"), or only a part (e.g.
"String").
- If Text is selected, all other occurrences of this text in the document should
be highlighted.
- The highlighting starts automatically when text is selected - no shortcut,
search function or similar is needed.

Additional options, if possible :-)
- Highlighting also within comments.
- The selected text may contain spaces, e.g. "MsgBox( 0, "

Example screenshot

[URL=https://www.directupload.net/file/d/5810/hgfcto68_png.htm][IMG]https://s12.
directupload.net/images/200505/temp/hgfcto68.png[/IMG][/URL]

Can you please add this feature? :)

Best regards,
Professor Bernd.

-- 
<https://forum.pspad.com/read.php?2,73355,73355>
PSPad freeware editor https://www.pspad.com


Re: PSPad unicode 5.0.4 (395) English [73350]

2020-04-29 Tema obsahu Professor Bernd
Many thanks for the new features! 

- New scripting function tabsToSpaces(input: string): string
- User highlighter - mark variable starts on $ with dblclick

Both work wonderfully. :)

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


Re: VBScript get CaretX from line with tabs [73273]

2020-04-17 Tema obsahu Professor Bernd
That would be great! :)

It's better if you take the tab width from the PSpad settings. This way the
user's settings are always taken.

I am very happy. I've been working on it for more than 2 weeks now, but it can't
be solved externally. So it's good if you do it from the inside. :)

Thank you very much!

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


Re: VBScript get CaretX from line with tabs [73271]

2020-04-17 Tema obsahu Professor Bernd
Unfortunately this is not possible, because the action aTabToSpaces calls the
dialog, this would disable my CallTip. In addition, it would convert in the real
text of the user, what the user might not want. 

I need a function that works without dialog and does not change the user's
text.

Is this possible?

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


Re: VBScript get CaretX from line with tabs [73267]

2020-04-16 Tema obsahu Professor Bernd
Hi Jan, I made a mistake. Can I please change the feature request?

My tests have shown that calculating the cursor position from extended tabs to
position my CallTip does not work. :-(

What would work would be a function to convert the line with tabs to a line with
spaces. Like the function "Convert Tabs to Spaces" in the menu "Edit" / "Special
conversion". Even the tab width is read automatically, which is very useful.

I am very sorry that I was wrong. Would it be possible to provide a function in
VBScript to convert a line of tabs to a line of spaces? 

Like 

"[color=#FF]TabsToSpaces(string): string[/color]"
[color=#389666]Converts text with tabs to text with spaces.[/color]

Example [color=#FF]"sLine = obj.TabsToSpaces(obj.lineText)[/color]"

That would be great! :)

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


Re: VBScript get CaretX from line with tabs [73264]

2020-04-16 Tema obsahu Professor Bernd
You already have the function. ;-) It shows the position of the expanded tabs in
the PSPad status bar (see screenshot in posting #1). It would only be necessary
to provide the value in VBScript. :)

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


Re: VBScript get CaretX from line with tabs [73262]

2020-04-16 Tema obsahu Professor Bernd
It is for external use with my CallTipViewer. 

With VBScript I call the CallTip, pass it CaretX, and calculate the position of
the first letter of the function name. Then I position the CallTip exactly under
the function name. 

[URL=https://www.directupload.net/file/d/5791/cfj8azbw_png.htm][IMG]https://s12.
directupload.net/images/200416/temp/cfj8azbw.png[/IMG][/URL]

This works fine as long as there are no tabs in the line. So I might need a
"CaretTabX" to position the CallTip correctly when there are tabs in the line.

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


VBScript get CaretX from line with tabs [73247]

2020-04-15 Tema obsahu Professor Bernd
Hello.

How can I get the correct CaretX pos in VBScript if there are tabs in the text
of a line?

[URL=https://www.directupload.net][IMG]https://s12.directupload.net/images/20041
6/iwoxtnaf.png[/IMG][/URL]

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


Re: adding 3 KeyWord sections and 1 Variable section [73174]

2020-03-30 Tema obsahu Professor Bernd
Yippee! :)

You are the best PSPad developer I know! :-P

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


Re: adding 3 KeyWord sections and 1 Variable section [73170]

2020-03-30 Tema obsahu Professor Bernd
Oh, very well. Thank you very much. :)

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


Re: adding 3 KeyWord sections and 1 Variable section [73168]

2020-03-30 Tema obsahu Professor Bernd
Please excuse me, my English is not so good. Could you explain more precisely
how I could do it? :)
pspad:

remove $ from keyword 
char

That's clear. ;-)
pspad:

correctly handle word selection when highlighting of variable is available.


How exactly can I do that?

Bernd.

-- 

PSPad freeware editor https://www.pspad.com


  1   2   >