by Stewart (12 Submissions)
Category: Complete Applications
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(8 Votes)

UPDATE.....
Added an options dialog. Made it generic enough you could reuse it in another application. The code to call and utilize it is all wrapped into the modHighlighter.bas file. Please note you can download at https://www.ceditmx.com/products/scintilla/dl.php?file=cedits2&access=https://www.ceditmx.com/products/scintilla/scintillamdi.zip.
Downloading from the site will give you the scilexer.dll that you need. Or you can download the file here and get scilexer.dll from the compiled scite demo from https://www.scintilla.org
This is a sample of utilizing the Scintilla Wrapper in an MDI application enviroment. This is in reality a fairly complete basic Source code Editor. It lacks most of the fancy features that you have seen in my cEdit app but it's a good simple to read and follow idea of how to use Scintilla within VB and an MDI app. Note I added Print to it and I'd like to thank Dasith Wijesiriwardena for his WYSIWYG RTF code. It took some fairly heavy modifications from his code to work but it lead me in the right direction to getting the print code setup. Also I improved the ExportToHTML function drasticly. It can now do a 2000 line piece of code in around 3 seconds. Also ReplaceAll has been improved and is quite a bit faster. I'd like to see Open improved in speed in next release. Please leave comments and if you like it feel free to vote. But especially leave comments :)
Inputs
Download at: http://www.ceditmx.com/products/scintilla/dl.php?file=cedits2&access=http://www.ceditmx.com/products/scintilla/scintillamdi.zip
Download MDI Source Code Editor Sample using Scintilla Wrapper (116 KB)