Recent

Author Topic: TSynExporterHTML  (Read 7012 times)

Sora-Kun

  • Full Member
  • ***
  • Posts: 162
  • I can smell your presence ...
    • Sora-Kun
TSynExporterHTML
« on: August 24, 2010, 03:42:59 am »
Hello,
I need to know what does TSynExporterHTML do, and how can use it.
Thanks  :-*
if nothing suites you, make it your self!
The Revolution, Genesis. The next generation IDE.
If you want to help, PM me.

Made in Lazarus.
Soon, in The WWW.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8764
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: TSynExporterHTML
« Reply #1 on: August 24, 2010, 06:44:26 am »
Quote
I need to know what does TSynExporterHTML do
Exports the code in SynEdit to HTML?
Quote
how can use it
Drop a TSynEdit, TSynXXXSyn (one of the available highlighters), and TSynExporterHTML. Set Both TSynEdit and TSynExporterHTML's highlighter to TSynXXSyn. Then on an event (or through shortcut, mouse clicks, whatever you want) do this:
Code: [Select]
procedure TForm1.SynEdit1Change(Sender: TObject);
begin
  SynExporterHTML1.ExportAll(SynEdit1.Lines);
  SynExporterHTML1.SaveToFile('test.html');
end;
You should have test.html containing the highlighted code in HTML.

Sora-Kun

  • Full Member
  • ***
  • Posts: 162
  • I can smell your presence ...
    • Sora-Kun
Re: TSynExporterHTML
« Reply #2 on: August 24, 2010, 01:04:03 pm »
Thanks man, That work great xD !!!!  O:-)
if nothing suites you, make it your self!
The Revolution, Genesis. The next generation IDE.
If you want to help, PM me.

Made in Lazarus.
Soon, in The WWW.

 

TinyPortal © 2005-2018