Recent

Author Topic: Pasdoc and Lazarus  (Read 771 times)

440bx

  • Hero Member
  • *****
  • Posts: 5596
Pasdoc and Lazarus
« on: June 12, 2025, 12:01:08 am »
Hello,

I was reading about Pasdoc and I wondered if there is a way for Lazarus to display Pasdoc documentation on the fly while programming.  IOW, a bit like Codetools.

Is that possible and if the answer is yes, a description of how it is done or a link to a page that describes how it's done will be greatly appreciated.

Thank you.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8819
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Pasdoc and Lazarus
« Reply #1 on: June 13, 2025, 04:51:06 am »
Not at the moment. Lazarus codetools is designed specifically to work with fpdoc XML, which RTL/FCL/LCL all have. Regarding possibility, one would need to write a package that parses the in-source documentation and display it like codetools popup windows. But AFAIK, such a package doesn't exist yet. PasDoc does have a Lazarus package mainly for PasDocGUI that demonstrates how to use its units in Lazarus. That could be a starting point to make the package.

440bx

  • Hero Member
  • *****
  • Posts: 5596
Re: Pasdoc and Lazarus
« Reply #2 on: June 13, 2025, 05:10:23 am »
Useful information, thank you  Leledumbo. 
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

PascalDragon

  • Hero Member
  • *****
  • Posts: 6051
  • Compiler Developer
Re: Pasdoc and Lazarus
« Reply #3 on: June 13, 2025, 10:36:46 pm »
Considering that PasDoc is essentially using comments in front of or next to some identifier at least the raw information is available inside the tooltips that Lazarus provides when hovering over an identifier. The formatting inside the tooltip could probably be improved with some package... 🤷‍♀️ (A remaining problem would be group of identifiers and some others)

 

TinyPortal © 2005-2018