Recent

Author Topic: Best way to include lots of text?  (Read 2877 times)

BobDog

  • Sr. Member
  • ****
  • Posts: 394
Re: Best way to include lots of text?
« Reply #15 on: June 08, 2023, 05:06:45 pm »
An include file works fine, you only need two lines to declare the string

... nope...
I got it wrong
« Last Edit: June 08, 2023, 05:51:33 pm by BobDog »

Thaddy

  • Hero Member
  • *****
  • Posts: 16201
  • Censorship about opinions does not belong here.
Re: Best way to include lots of text?
« Reply #16 on: June 08, 2023, 05:13:13 pm »
Akira1264 is or was working on this. I don't know if it is finished yet:
Code: Pascal  [Select][+][-]
  1. https://forum.lazarus.freepascal.org/index.php?topic=46050.30
And fpc-develop mailing list.
If I smell bad code it usually is bad code and that includes my own code.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5769
  • Compiler Developer
Re: Best way to include lots of text?
« Reply #17 on: June 08, 2023, 06:14:51 pm »
Akira1264 is or was working on this. I don't know if it is finished yet:
Code: Pascal  [Select][+][-]
  1. https://forum.lazarus.freepascal.org/index.php?topic=46050.30
And fpc-develop mailing list.
It's done and would simply need reintegration. However I won't do so until I've found the time to also finish the patch for $IncludeStringFile directive as a more sane alternative.

 

TinyPortal © 2005-2018