Can I turn off all auto-formatting?

Questions & Answers

Moderators: fgagnon, nikos, Site Mods

Post Reply
User avatar
kunkel321
Gold Member
Gold Member
Posts: 534
Joined: 2008 Jan 05, 18:58

Can I turn off all auto-formatting?

Post by kunkel321 »

Editor2 will, by default, recognize URLs.   I'd like to turn off that feature.  I find that a good way to get rid of all the formatting of a text string is to copy-n-paste it in to NotePad.exe, then copy it back from there.  I'd like to be able to do this with Ed2 instead.... Is this possible?   I didn't see it in the Options.    Thanks :)  -steve
User avatar
nikos
Site Admin
Site Admin
Posts: 15794
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

it could be possible by using dwTEXTMODE registry tweak for editor2 and set it to plain and be saved by both these problems, see
http://msdn.microsoft.com/en-us/library ... S.85).aspx
User avatar
kunkel321
Gold Member
Gold Member
Posts: 534
Joined: 2008 Jan 05, 18:58

Like this?

Post by kunkel321 »

Thanks for the reply Nikos!

This is new territory for me, but I've located a reg key for Ed2 at
HKEY_CLASSES_ROOT\Applications\editor2_UC.exe

From reading that Microsoft article it sounds like I should include the tweak as a command parameter.  I see the following
HKEY_CLASSES_ROOT\Applications\editor2_UC.exe\shell\open\command
points to "C:\Program Files\zabkat\xplorer2\editor2_UC.exe" "%1"

So maybe I should change the %1 to something like
lResult = SendMessage((UINT) dw_SETTEXTMODE);

That doesn't look standard command line code though....
Perhaps this dw string should be used in a newly created key?  But in what level of the directory (shell, open, etc) should I put it in?  And what type of new key should be used?

Or am I heading down the wrong path altogether?    

:?:
User avatar
nikos
Site Admin
Site Admin
Posts: 15794
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

TM_PLAINTEXT 1
TM_RICHTEXT 2
TM_SINGLELEVELUNDO 4
TM_MULTILEVELUNDO 8
TM_SINGLECODEPAGE 16
TM_MULTICODEPAGE 32

the default is RICHTEXT | MULTIUNDO | MULTICP = 42 (2Ah)
try setting dwTEXTMODE (first quit editor2) to 41, and if that doesn't work, try 16+1+8 = 25

to test this please try it with this new test version:
www.zabkat.com/ed3.zip
Post Reply