Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-09

Nested comments

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt
to Michael Van Canneyt
Michael Van Canneyt wrote 15 lines
On Mon, 23 Sep 2013, Juha Manninen wrote: > I realized FPC supports nested {} comments by default. > SynPdf, a Synopse PDF engine > http://synopse.info/fossil/wiki?name=PDF+Engine > has '{' characters inside comments but they are not meant as nested > comments. > > How to turn nested comments off? > I did not find any such option even by using the new advanced (!) All > Options GUI in Lazarus. Use Delphi mode or TP mode.

if that is not an option:

{$MODESWITCH NESTEDCOMMENTS-}

Michael.

Reply by email

Juha Manninen
to Michael Van Canneyt: Use Delphi mode or TP mode. Michael.
Michael Van Canneyt wrote
Use Delphi mode or TP mode.

Thanks, it helped.
Actually there already was {$MODE Delphi} in an include file. Apparently it does not work, it must be in every pascal unit.

This PDF package still does not compile with Lazarus. I will see which is easier, port it for Lazarus or add embedded font support for PowerPDF.
If somebody knows a solution for PDF embedded fonts, please tell me.

Regards,
Juha

Reply by email

Sven Barth
to Juha Manninen
Juha Manninen wrote 6 lines
On Mon, Sep 23, 2013 at 3:06 PM, Michael Van Canneyt wrote: > Use Delphi mode or TP mode. Thanks, it helped. Actually there already was {$MODE Delphi} in an include file. Apparently it does not work, it must be in every pascal unit.

The include needs to be before the interface uses clause. Better before the 'interface' keyword. Otherwise the modeswitch inside an include file works without problems as the FPC compiler uses that as well. Maybe you need to check for warnings...

Regards,
Sven

Reply by email