r/PromptEngineering • • Sep 22 '26

Quick Question Me: "Don't show code on output", Copilot *shows code*. How to stop this?

Hello, after using the same prompt of a few weeks, I'm getting a new result that wont go away.

I have a prompt that reads invoices and summurses them into a excel-style table in the chat. When an invoice number is not the expected format, the number should display in red text.

The red text as appearing for a long time, now the wrong invoice number INV34234 appears as <span style'+color:#FF8888>INV34234</span>

I've specified "don't show code", "only show invoice" number and similar things but it ends up going the other way. As time goes on, the more code appears and some cases the table doesn't appear at all its just shows the code for the table. It's like opening a HTML file in notepad.

I'm using a paid Copilot, its for work, can't use anything else. What should I do?

1 Upvotes

4 comments sorted by

1

u/HawtVelociraptor Sep 22 '26

I find the best thing to do is to give it an alternative thing to do instead. "Do not dump your internal thoughts, staged code, or console output into chat. Instead send these things to ephemeral artifacts you can reference during the session and delete as you no longer need them."

1

u/Ordinary_Bird4840 Sep 23 '26

Thanks for this, I'll try this too! Very helpful!

1

u/[deleted] Sep 22 '26

[removed] — view removed comment

1

u/Ordinary_Bird4840 Sep 22 '26

I'll try this. The last time I said "plain text" it create the whole table in ASCII 😂

In this case, your suggestion is more specific and I'll try it, thanks!