# Keep Comments Unpublished

**URL:** <https://forums.realmacsoftware.com/t/keep-comments-unpublished/44869>\
**Category:** RapidWeaver Elements\
**Created:** [October 6, 2024, 10:27pm UTC](https://forums.realmacsoftware.com/t/keep-comments-unpublished/44869 "2024-10-06T22:27:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bill/32/107_2.png) [@Bill](https://forums.realmacsoftware.com/u/Bill)\
**Post date:** [October 6, 2024, 10:27pm UTC](https://forums.realmacsoftware.com/t/keep-comments-unpublished/44869/1 "2024-10-06T22:27:49Z")

</div>

I try to comment my code and especially in the template area I have comments all over the place using `<!-- *** -->`  
But then I noticed that all comments are published which clutters things up. Is there a special character wrapper we could use inside of Elements that would prevent a comment from being published ?

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [October 7, 2024, 7:10am UTC](https://forums.realmacsoftware.com/t/keep-comments-unpublished/44869/2 "2024-10-07T07:10:44Z")

</div>

you could wrap the comment in a `@if` statement.

```auto
@if(edit)
  <!-- my comment only shown in edit -->
@endif
```

---

<div class="post-metadata">

**Author:** ![Bill](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bill/32/107_2.png) [@Bill](https://forums.realmacsoftware.com/u/Bill)\
**Post date:** [October 7, 2024, 3:09pm UTC](https://forums.realmacsoftware.com/t/keep-comments-unpublished/44869/3 "2024-10-07T15:09:43Z")

</div>

Ok. FYI - noticed that text input is slowing down, probably due to the @if’s comments and I’m not even working on a complex component yet.

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [October 7, 2024, 4:55pm UTC](https://forums.realmacsoftware.com/t/keep-comments-unpublished/44869/4 "2024-10-07T16:55:08Z")

</div>

Could you give more info and supply a demo project where this is happening?
