On Fri, 12 May 2023 17:59:32 GMT, Lance Andersen <lan...@openjdk.org> wrote:
>> I have been just trying to keep it as similar visually as possible but what >> you say is reasonable. > > Agree, that I would make the code valid when using a snippet There's a replacement tag for this. Some people use label, e.g. code: // @replace substring="code:" replacement="..." This way, the snippet remains compilable and rendered the same as before. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/13957#discussion_r1193079515