# Hide text -- nested comments possible? other solutions?

**URL:** <https://forum.pinegrow.com/t/hide-text-nested-comments-possible-other-solutions/6260>\
**Category:** Beginners\
**Created:** [February 17, 2022, 4:04am UTC](https://forum.pinegrow.com/t/hide-text-nested-comments-possible-other-solutions/6260 "2022-02-17T04:04:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dculp](https://avatars.discourse-cdn.com/v4/letter/d/e47c2d/32.png) [@dculp](https://forum.pinegrow.com/u/dculp)\
**Post date:** [February 17, 2022, 4:04am UTC](https://forum.pinegrow.com/t/hide-text-nested-comments-possible-other-solutions/6260/1 "2022-02-17T04:04:22Z")

</div>

I have some text that I want to hide for the time being (might be useful later). I typically would do this with a comment in the code. However, the code has existing comments that I don’t want to remove. Therefore, these existing comments would have to be nested within the main comment. I tried this but it didn’t work.

```auto
<!-- main comment
   some code here ...
      <!-- nested comment -->
   some code here ...
 -->

```

Atom has a potential solution package but it didn’t seem to do anything in atom ([html-nested-comments](https://atom.io/packages/html-nested-comments)). (But maybe I misunderstand the application of this package.)

Suggestions?

Thanks,  
Don C.

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [February 17, 2022, 10:46am UTC](https://forum.pinegrow.com/t/hide-text-nested-comments-possible-other-solutions/6260/2 "2022-02-17T10:46:27Z")

</div>

Hi @dculp,  
the best (I think) that you can do is to enclose the inner comments in some other characters besides `--`. Maybe substitute tilde?

```auto
<!--outer comment
    <! ~~nested comment~~ >
-->

```

Any characters can be used, it is just a note for yourself and needs to be converted back when you remove the outer comment block.  
Cheers,  
Bob

---

<div class="post-metadata">

**Author:** ![dculp](https://avatars.discourse-cdn.com/v4/letter/d/e47c2d/32.png) [@dculp](https://forum.pinegrow.com/u/dculp)\
**Post date:** [February 17, 2022, 11:42am UTC](https://forum.pinegrow.com/t/hide-text-nested-comments-possible-other-solutions/6260/3 "2022-02-17T11:42:32Z")

</div>

RobM –

OK. I have created a macro in an external editor (EditPad Pro) to do this.
