Forum > Documentation (Maintaining -)

Fpc documentation completely ignores commonly used "{%H-}"

(1/4) > >>

lagprogramming:
Searching in the Fpc, MseIde/MseGui and Lazarus directories for "{%H-}" shows many occurrences. When I searched in the documentation of the latest stable FPC for "{%" I couldn't find anything. Might be a good idea to update the documentation so that the next stable release would also cover this subject.

marcov:
FPC does nothing with {%H-}, Lazarus does. So it should be in the Lazarus documentation.

AlexTP:
@macrov,
Report is about {%H}, not {$H}

Posted to bugtracker,
https://gitlab.com/freepascal.org/fpc/documentation/-/issues/39346

marcov:
Typo, I meant %H yes.  {% convention is Lazarus only.

Martin_fr:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---{%H-}
Is documented in the FPC docs https://www.freepascal.org/docs-html/ref/refse2.html#x10-90001.2

"{" begins a comment.
The above code is a comment, indeed. Well, at least as far as fpc is concerned.

The Lazarus IDE handles all sorts of comments. E.g. comments in front/after a method declaration may be shown as hint by the IDE, if hovering an invocation of that method.

"{%" is also a comment handled by the IDE.
When the IDE reads the compiler output during compilation, and the IDE finds hints produced by the compiler then it may filter them from the output shown in the messages window.
The compiler has no idea, what the IDE will do with the output. And the compilers output is not changed by that comment.

The IDE also handles "{%region}", which to the compiler is also just a comment.

Navigation

[0] Message Index

[#] Next page

Go to full version