|
|
SynEdit Development Website |
|
Issues with SynEdit should be directed to the appropriate mailing lists, after the FAQ has been read. |
FAQ - Frequently Asked QuestionsIf the development team receive a question, related to SynEdit, the answer to which benefits others then you will find the answer here. Table of Contents
How do I convert a mwEdit highlighter to a SynEdit highlighter?There are several changes before mwEdit highlighters can be used with SynEdit, this page tells you how to convert the source. Steps to convert a highlighter:
Michael Hieke 2000-04-14 Back to TopHow do I subscribe to the Mailing Lists?Please see this document by David Muir. Back to TopHow do I set up SynEdit for exporting?There is a simple example of exporting in the downloadable source tree, in the Demos\ExportDemo directory. This illustrates how to export to RTF and HTML. Back to TopHow can I make a php/html multi highlighter? I can't use <? and ?>"?", like ".", "*", and many others symbols, are reserved into regular expression syntax cause they have a special meaning. Back to TopHow do I print the contents of a TSynEdit?Have a look at the PrintDemo located under the Demos directory. This is a good example of how to print using the TPrintOut class, which can be used with or without a TSynEdit. As of 19/06/2000, new print and print preview components have been added to the distribution. A enhanced print demo, PrintDemoNew directory, is included in the SynEdit Source Download 1.0. Back to TopHow can I automatically determine the highlighter to use from a filename?If you have a look in the source tree, in the Demos directory you will see a Pascal unit called "uHighlighterProcs.pas" which contains some useful functions and procedures relating to this kind of problem. Back to TopCan SynEdit be used in console programs?Yes, it can. An instance of the control can be created using: program test; uses SynEdit; var SynEdit: TSynEdit; begin SynEdit := TSynEdit.Create(Application); { this creates the TSynEdit instance } SynEdit.Lines.LoadFromFile(SomeFile.txt); { then process the file } end. See the pas2html demo, in the Demos\pas2html directory of the source tree, for an example of exporting a file to HTML without using a TSynEdit control. Back to TopI attempt to compile the demo programs but get errors like: SynEdit.dcu cannot be found, what am I doing wrong?A common cause of this is that the directory that Delphi is looking for the source files is not the one in which the source files are actually located. To solve this simply add the directory of the SynEdit source files to the Search Path of the project.
Back to TopI wrote a highlighter for the XYZ language. How can I contribute it to the project?If you have a new highlighter to contribute, please put it into a ZIP file, together with a matching DCR file, and either send it to the developer list, or go to the SynEdit Project page, where you can find the mail addresses of the project maintainers to send the files to them. Back to TopDavid Muir.
|