Page 3 of 5

Re: hpwPlusMemo

PostPosted: Wed Jul 03, 2013 10:32 pm
by HPW
I understand that in the plug-in is not possible to search and replace?


It might be possible, but it makes no sense to reinvent the wheel in every plugin.

We have native search and replace in neobook and other languages.
The memo display a text-stream, which can be manipulated by the core or other plugins.

Re: hpwPlusMemo

PostPosted: Sat Aug 31, 2013 12:38 am
by HPW
Just released hpwPlusMemo 1.09:

http://www.hpwsoft.de/anmeldung/html1/n ... ook16.html

Action: hpwPlusMemoUndo - Undo last operation.
Action: hpwPlusMemoRedo - Redo last Undo.
Action: hpwPlusMemoClearUndo - Reset Undo-Buffer.

Re: hpwPlusMemo

PostPosted: Mon Sep 02, 2013 2:02 pm
by HPW
Just released hpwPlusMemo 1.10:

http://www.hpwsoft.de/anmeldung/html1/n ... ook16.html

Action: hpwPlusMemoInsertText - Each Insert can now be undone by undo. Also need smaller undo-buffer.
Action: hpwPlusMemoDeleteText - Each delete can now be undone by undo. Also need smaller undo-buffer.

Re: hpwPlusMemo

PostPosted: Fri Mar 06, 2015 2:23 am
by mishem
Hello.
action:

hpwPlusMemoSetVar

[hpwMemoBackColor], [hpwMemoFontColor], [hpwMemoFontName],
[hpwMemoFontSize], [hpwMemoFontStyle], [hpwMemoFontCharset],
[hpwMemoGutterWidth], [hpwMemoHint], [hpwMemoSubHighLighter],
[hpwMemoNumberColor], [hpwMemoScrollTime], [RectangleName_ContextAction],
[RectangleName_OnChangeAction], [RectangleName_OnKeyDownAction],
[RectangleName_OnKeyUpAction], [RectangleName_OnMouseDownAction],
[RectangleName_OnMouseMoveAction], [RectangleName_OnMouseUpAction]

Image

Re: hpwPlusMemo

PostPosted: Fri Mar 06, 2015 3:06 am
by mishem
If the text in Cyrillic. And the keyboard layout ENG.
Select the text. The right mouse button.
Copy text to the clipboard.
Insert to something, a text input field, notepad ...

Image

If the keyboard layout RUS, the text is displayed correctly.

If all this is done in software.
For Example:

Code: Select all
Random "100" "[i]"
hpwPlusMemoSelectPos "TextForRegex" "[i]" "15"
hpwPlusMemoCopyToClip "TextForRegex"

SetVar "[TextEntry1]" "[Clipboard]"


Text in any keyboard layout is displayed correctly.

Variable [hpwMemoFontCharset] assign different values ...

Re: hpwPlusMemo

PostPosted: Fri Mar 06, 2015 7:41 am
by HPW
Hello,

I can not understand the first post. From an acces violation-message no one can guess what the error produce.

The second post is also unspecific.
Also be aware that the plugin is a ANSI-compatibel version and only tested with english/german enviroment.

So what should be done. Typing in cyrillic? Clipboard-pasting in cyrillic?
Not sure if this can be done only with the extended ANSI-Charset.

Regards

Hans-Peter

Re: hpwPlusMemo

PostPosted: Fri Mar 06, 2015 10:08 am
by mishem
I can not understand the first post.


Video.

Typing in cyrillic? Clipboard-pasting in cyrillic?


Video.

Re: hpwPlusMemo

PostPosted: Fri Mar 06, 2015 10:26 am
by HPW
Hello,

Ok, I see what you do. But I can not reproduce it here on my System.
So it is hard to know whats the Problem is.
Seems that I can not help for now.

Sorry,

Regards

Re: hpwPlusMemo

PostPosted: Sat Mar 07, 2015 2:26 am
by mishem
Hello.
Do Assistant compiling regular expressions to hpwControl.

Did highlight the text in the match.

The backlight is not consistent with those that hpwControl.

You can fix it as that?

The project itself in our forum.
Direct link to thezip archive.

Required plug-ins:
NeoBookDB23d
hpwPlusMemo
hpwControl

Re: hpwPlusMemo

PostPosted: Sat Mar 07, 2015 10:29 am
by HPW
The backlight is not consistent with those that hpwControl.
You can fix it as that?


What do you mean with that? backlight? Consistent with hpwControl?
hpwControl is no graphical component.

Regards

Re: hpwPlusMemo

PostPosted: Sat Mar 07, 2015 11:53 am
by mishem
Video

Clipboard-pasting in cyrillic?

Do yourself on the forum dealt with.
In XP it's OK is displayed.
In Windows 7-8 characters can not be displayed correctly.

Re: hpwPlusMemo

PostPosted: Mon Mar 09, 2015 11:32 am
by HPW
Hello,

Reading into the code after a long time let me find the correct setup for the consistent behavior of the regex.
It is consistent but not equal.

PlusMemo has its own layer above the Regex engine and uses it own config-system.
In the demo file newlisp.ini for example you find a section [RegExKeywords].
Instead of contained modifiers Plusmemo supports bitcodes in the entrys.
The bitcodes are explained at the top of the ini file:

;INI-file for hpwNewLISP syntax highlighting with plusmemo
;1 parameter Bitcode 0=none 1=Match case 2=Whole words only
;2 parameter Bitcode 0=none 1=Bold 2=Italic 4=Underline 8=Strike Out 16=Highlight 32=Alternate Font
;3 parameter Context number
;4 parameter Mouse Pointer 0=crDefault -1 to -22 Standardpointer (see MouseCursor.txt)
;5 parameter Background color -1=Default
;6 parameter Foreground color -1=Default
;7 parameter Scope
;8 parameter Priority Level


So the following config does the same as hpwControl with (?i)Jon:
Code: Select all
[RegExKeywords]
Jon=1,0,1,0,-1,255,0,0,


Regards

Re: hpwPlusMemo

PostPosted: Mon Mar 09, 2015 1:08 pm
by mishem
So the following config does the same as hpwControl with (?i)Jon:

Yes, thank you, I have found and corrected.
I am looking for other options, but to no avail.

For example ^.
Finds all strings.
A must only find the first one.
Modifier (?-m) does not change anything.

With this expression (?m)^N
hpwControl how then do not understand is N.
I open a pub file and experimenting on his text.

I want to find another opportunity to match results could allocate a different color through one. But it's probably not possible. :)

For example, if you specify in the expression of a single point, select the entire text. And I want to do to be seen that highlighted each character separately. Or each match different color.


ps
Maybe I'd better write in Russian?
And you're in Google translate?

Re: hpwPlusMemo

PostPosted: Mon Mar 09, 2015 1:11 pm
by mishem
;INI-file for hpwNewLISP syntax highlighting with plusmemo
;1 parameter Bitcode 0=none 1=Match case 2=Whole words only
;2 parameter Bitcode.....


I am 3.7 and 8 until the parameter as follows can not understand.

......................

In the plug hpwPlusMemo default semicolon ";" (Comments) already defined color. This has been done?

Image

Re: hpwPlusMemo

PostPosted: Mon Mar 09, 2015 2:37 pm
by HPW
Hello,

It is mostly difficult to guess what you want.

So this are entrys which work for me:

Code: Select all
[RegExKeywords]
^w:.*$=0,0,1,0,-1,255,0,0,
^t:.*Bla=0,0,1,0,-1,255,0,0,


First Highlight from w: at linestart to lineend
Second Highlight from t: at linestart and end at word bla.

Regards