# The code in package editor is not marked appropriately

**URL:** <https://community.postman.com/t/the-code-in-package-editor-is-not-marked-appropriately/67582>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [August 28, 2024, 7:23am UTC](https://community.postman.com/t/the-code-in-package-editor-is-not-marked-appropriately/67582 "2024-08-28T07:23:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![technical-engineer16](https://avatars.discourse-cdn.com/v4/letter/t/a698b9/32.png) [@technical-engineer16](https://community.postman.com/u/technical-engineer16)\
**Post date:** [August 28, 2024, 7:23am UTC](https://community.postman.com/t/the-code-in-package-editor-is-not-marked-appropriately/67582/1 "2024-08-28T07:23:39Z")

</div>

Hi, I am using packages

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/6/3/638cf9e5da49428a283c70e2b1561d8a23611a96.png)

suddenly the comments and the code are not made as they should be.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [August 28, 2024, 7:28am UTC](https://community.postman.com/t/the-code-in-package-editor-is-not-marked-appropriately/67582/2 "2024-08-28T07:28:57Z")

</div>

Hey @technical-engineer16 👋🏻

Could you elaborate and expand on the information here, detailing what you’re expecting to see and what’s not happening for you?

There is very little information here to know what problem you’re reporting - a cut down example piece of code would also help.

---

<div class="post-metadata">

**Author:** ![technical-engineer16](https://avatars.discourse-cdn.com/v4/letter/t/a698b9/32.png) [@technical-engineer16](https://community.postman.com/u/technical-engineer16)\
**Post date:** [August 28, 2024, 9:54am UTC](https://community.postman.com/t/the-code-in-package-editor-is-not-marked-appropriately/67582/3 "2024-08-28T09:54:08Z")

</div>

hi, I am expecting to see the comments marked as comments and saved commands like console.log be marked with colors

For example:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/4/8/48f518c78f86851e8fbf899ebe1ed699f9efb84f.png)

The issue resolved but it was like in the first screenshot for a few days.

---

<div class="post-metadata">

**Author:** ![technical-engineer16](https://avatars.discourse-cdn.com/v4/letter/t/a698b9/32.png) [@technical-engineer16](https://community.postman.com/u/technical-engineer16)\
**Post date:** [August 28, 2024, 10:25am UTC](https://community.postman.com/t/the-code-in-package-editor-is-not-marked-appropriately/67582/4 "2024-08-28T10:25:24Z")

</div>

now the issue is back:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/b/5/b5c501273b2ff26d2754db098bacc5a2aec2bfc6.png)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [August 28, 2024, 10:32am UTC](https://community.postman.com/t/the-code-in-package-editor-is-not-marked-appropriately/67582/5 "2024-08-28T10:32:46Z")

</div>

Can you create an example function in a script and use that in a request to show the issue.

Those context screenshots alone done show the issue or what you’re expecting to see in the console.

---

<div class="post-metadata">

**Author:** ![gbadebo-bello](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/gbadebo-bello/32/12175_2.png) [@gbadebo-bello](https://community.postman.com/u/gbadebo-bello)\
**Post date:** [August 28, 2024, 1:27pm UTC](https://community.postman.com/t/the-code-in-package-editor-is-not-marked-appropriately/67582/6 "2024-08-28T13:27:28Z")

</div>

Hi @technical-engineer16. 👋

I see what you mean. Switching to JSDoc commenting style should fix the issue you’re experiencing. To switch, you need to start your comment with “/\*\*” instead of “/\*”. Use "double asteriks.

Ideally, I’d expect single asterisks to work like in every other text editor so I’ll take this as feedback to the relevant team.

![image](https://us1.discourse-cdn.com/getpostman/original/3X/e/c/ecba61566265fb4701d3d52e9ef9cc9ada40d9f0.png)

---

<div class="post-metadata">

**Author:** ![technical-engineer16](https://avatars.discourse-cdn.com/v4/letter/t/a698b9/32.png) [@technical-engineer16](https://community.postman.com/u/technical-engineer16)\
**Post date:** [August 29, 2024, 9:59am UTC](https://community.postman.com/t/the-code-in-package-editor-is-not-marked-appropriately/67582/7 "2024-08-29T09:59:24Z")

</div>

> [@gbadebo-bello](#):
>
> Switching to JSDoc commenting style

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/d/b/db5816d09b22a4b0c791cc5aba9668b50e31c81c.png)

didnt worked

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [August 29, 2024, 11:24am UTC](https://community.postman.com/t/the-code-in-package-editor-is-not-marked-appropriately/67582/8 "2024-08-29T11:24:32Z")

</div>

What didn’t work?

What are you seeing when you use that function in an actual request? Can you show images of that?

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [September 28, 2024, 11:24am UTC](https://community.postman.com/t/the-code-in-package-editor-is-not-marked-appropriately/67582/9 "2024-09-28T11:24:46Z")

</div>

Closed on September 28, 2024, 11:24am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
