News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Testing RichEditBib (Highlight Syntax Richedit)

Started by HSE, April 07, 2021, 04:04:54 AM

Previous topic - Next topic

HSE

Hi all!

This a test of a Richedit subclass using a modification of Iczelion's Syntax Highlighting. Only symbols are colored here, exactly what Iczelion omitted.

For dual code freg macro system is used. In 32 bits registers are pushed/poped and in 64 bits registers are pseudo pushed/poped (that means storing them as local variables).  That make a lot more easy to adapt 32 bits code to 64 bits code.

Regards, HSE.

Now must work.
Equations in Assembly: SmplMath

Biterider

Hi HSE
The binary works fine and I was able to recompile the app right out of the box.
For some strange reason, Windows Defender detected the binary as a dangerous file...
Perhaps you've optimized the colors for high contrast. Yellow on a white background (SymbolColor1) is a little difficult to read on regular displays.

Biterider

HSE

Hi Biterider!

Quote from: Biterider on April 07, 2021, 04:32:53 AM
For some strange reason, Windows Defender detected the binary as a dangerous file...

I erased previous  :biggrin:. Jotti don't found nothing now.

Quote from: Biterider on April 07, 2021, 04:32:53 AM
Perhaps you've optimized the colors for high contrast.
No optimization, just black background. Changed that  :thumbsup:

Thanks, HSE.
Equations in Assembly: SmplMath

LiaoMi

Quote from: HSE on April 07, 2021, 06:42:14 AM
Hi Biterider!

Quote from: Biterider on April 07, 2021, 04:32:53 AM
For some strange reason, Windows Defender detected the binary as a dangerous file...

I erased previous  :biggrin:. Jotti don't found nothing now.

Quote from: Biterider on April 07, 2021, 04:32:53 AM
Perhaps you've optimized the colors for high contrast.
No optimization, just black background. Changed that  :thumbsup:

Thanks, HSE.

Hi HSE,


HSE

Hi LiaoMi!

That is an optimization to protect eyes!! :biggrin:

I think that was the file 1 (I forgot a line). Now file 2 have to work :thumbsup:
That don't work in this Richedit versiĆ³n, I have to see.

Thanks, HSE 
Equations in Assembly: SmplMath

HSE

Thanks LioaMi. Apparently if OS support CHARFORMAT2 perhaps getformat have a problema with CHARFORMAT :cool:

Added a new Project in first post.
Equations in Assembly: SmplMath

jj2007

Quote from: HSE on April 07, 2021, 08:02:01 AM
Thanks LioaMi. Apparently if OS support CHARFORMAT2 perhaps getformat have a problema with CHARFORMAT :cool:

mov   [xsi].reRichBib.charF.cbSize, sizeof CHARFORMAT2

HSE

Quote from: jj2007 on April 07, 2021, 08:47:53 AM
mov   [xsi].reRichBib.charF.cbSize, sizeof CHARFORMAT2
No in Win7-32. Yes in Win7-64. Like in file 3 is working well in both  :thumbsup:.
Equations in Assembly: SmplMath

jj2007


HSE

Equations in Assembly: SmplMath

jj2007

Quote from: HSE on April 07, 2021, 09:49:41 AMOffice...

See Making RichEdit work properly on Windows 10. The System32\RichEd20.dll sucks, it's buggy and utterly slow. Use Office 11 or 12 versions, they sit in C:\Program Files (x86)\Common Files\Microsoft shared\Office1?\RICHED20.DLL; even if you don't have Office installed, you may find them there if you ever installed the free Word viewer.

See also https://docs.microsoft.com/en-us/archive/blogs/murrays/richedit-versions

Biterider

Hi HSE
TestRichBib3 works fine under Win10 Enterprise 20H2/64.  :thumbsup:

Biterider

hutch--

It worked OK on my Win10 64. Yellow punctuation but the text in white and on a black background scheme.

HSE

Thanks Hutch and Biterider  :thumbsup:

Quote from: jj2007 on April 07, 2021, 10:11:30 AM
System32\RichEd20.dll
Good point JJ! Could be a problem here. Thanks.
Equations in Assembly: SmplMath

jj2007

The "official" RichEdit DLL is \System32\msftedit.dll (but it's not popular - I don't know why, I never tried it); there is also a C:\Windows\System32\riched20.dll, but it's over 10 years old, and I doubt it has all the features of the office versions, at one third of their size...

From Murray's blog:
4.0 Office XP riched20.dll
4.1 Windows XP SP1, Tablet, Vista msftedit.dll
5.0 Office 2003 riched20.dll
5.1 Windows CE, Pocket Word riched20.dll
6.0 Office 2007, Encarta Math Calculator riched20.dll