Dumping a file directly into a texteditor
Three items that caught my fancy recently...
Serial Communication with LB
David Drake reviews Image321.DLL
Implementing an editor with Scintilla.dll
Mitchell sent me a really neat piece of work that he has poured many hours into. He has adapted a DLL to Liberty Basic that is useful for building programmers editors.
Because the article is mostly annotated code, and most lines would wrap if they were mailed as straight text, I have decided to offer the intro that Mitchell wrote and then include the four files that make up the package as a single zipped archive. To read the rest of the article (the annotated code), unzip the archive and take a look at scintilla.txt. To run the program (and I highly recommend you do), open scintilla.bas in a LB3.01 (you must have at least 3.01), open the bas file and run!
Here is what Mitchell had to say:
Here is the code for scintilla. You should also download the full documentation from www.scintilla.org. It will help you add to this program.
This works off the base of VB syntax coloring but I edited the C++ source for the VB syntax colorer to match LB, and re-compiled it. I called the new dll SciLexerLB.dll, and it contains LB coloring in place of VB. There is also still a small bug in it where the default coloring becomes the keyword styling, only if there is no text after it. So just put an extra carraige return at the end to fix it.
Thank you Mitchell.