News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Syntax highlight - A new static library

Started by minor28, May 06, 2014, 07:01:11 PM

Previous topic - Next topic

minor28

I have written a static library called StdLib.lib containing functions for Dictionary (like .net Dictionary), List (like .net List), strings and time.

It replaces my old StringFunctions library. I'll be glad if you want to test it.

Function references are found on my site http://minor28.divdev.se under tab "Standard Library".

Gunther

Hi minor28,

Looks impressive.  :t I'll give it a try the next time.

Gunther
You have to know the facts before you can distort them.

minor28

To demonstrate how to use the dictionary functions, I have written a program to syntax highlight a richedit control text. The program is not a completed project for syntax highlighting but processes only text that the application loads. It's probably not entirely flawless.

The AddDictionaryItem was too slow to load large data so I added a new function FillDictionaryKeys. New upload on top. It is also added in the demo project.

Gunther

Hi minor28,

interesting work, thank you for sharing it.  :t Only one remark: Cancel ends the application, but what is with OK?

Gunther
You have to know the facts before you can distort them.

minor28

It is only a standard dialog template with a richedit control. Nothing else. OK button do nothing.

Gunther

Hi minor28,

Quote from: minor28 on May 12, 2014, 12:18:23 AM
It is only a standard dialog template with a richedit control. Nothing else. OK button do nothing.

okay, I understand. Solid work.

Gunther
You have to know the facts before you can distort them.

minor28

Another way to highlight syntax in this example. I'm not fully satisfied with the line numbering. Flickering and sometimes disappearing. Any suggestions is appreciated.

Gunther

Hi minor28,

Quote from: minor28 on May 25, 2014, 09:22:38 PM
Another way to highlight syntax in this example. I'm not fully satisfied with the line numbering. Flickering and sometimes disappearing. Any suggestions is appreciated.

There wasn't a flickering during program run. Is it a question of the graphics driver?

Gunther
You have to know the facts before you can distort them.