Writing guide: prompt and code boxes
When you share a prompt or a piece of code in an entry, you can put it in its own box. Readers copy it with one click using the button in the box's top-right corner, and code is coloured for its language. This page explains how the boxes work, along with the other formatting tools.
Act as a senior software engineer.
Review the following code for:
1. Potential bugs
2. Security vulnerabilities
Explain each issue and suggest a fix.Adding a box with the buttons
The toolbar above the entry box has two buttons for this: prompt and </> code.
Adding a prompt
- Put the cursor where the prompt should go. If you have already written it, just select it.
- Press prompt. You are asked which tool it is for: type a name such as Claude or ChatGPT, or leave it empty. The box's opening and closing lines are added and the cursor goes between them.
- Type or paste your prompt.
Adding code
- Place the cursor, or select your code.
- Press </> code. You are asked for the language: type a name such as python, js or bash, or leave it empty.
- Paste your code into the box.
Tip: the easiest way is to write the text first, select it, then press the button. The selected text goes straight into the box.
Writing it by hand
The buttons simply add the markup below. It is the triple-backtick style developers already know, so you can also type it yourself.
What you write
A short example:
```python
def greet(name):
return f"hello {name}"
```
That's it.What the site shows
A short example:
def greet(name):
return f"hello {name}"That's it.
Three rules are enough:
- The opening line starts with
```, followed directly by prompt or a language name. - The content starts on the next line.
- The box closes with
```on a line of its own.
Prompt box
Start the opening line with ```prompt. You can add a short label after it, such as the tool the prompt is meant for (up to 40 characters).
What you write
```prompt Claude / ChatGPT Summarise this text in three bullet points. ```
What the site shows
Summarise this text in three bullet points.A prompt box uses the normal text font. Long lines wrap, so readers never need to scroll sideways.
Code box and languages
Write the language name on the opening line. Recognised languages are coloured. With an unknown name, or none, the code still appears in a box with a copy button, just without colours. Upper or lower case does not matter.
- Python:
python,py - JavaScript and TypeScript:
js,javascript,ts,typescript,jsx,tsx - Terminal:
bash,sh,shell,zsh - PHP:
php - SQL:
sql,mysql,postgres,sqlite - JSON:
json - HTML and XML:
html,xml,svg - CSS:
css,scss - YAML and TOML:
yaml,yml,toml - Ruby:
ruby,rb - C family:
go,rust,java,kotlin,swift,c,cpp,csharp,dart
What you write
```bash npm install && npm run build # done ```
What the site shows
npm install && npm run build # doneWhat happens inside a box?
- Everything stays exactly as you wrote it. A (bkz: …) reference, hidden link, @username or #123 inside a box does not become a link.
- Nobody is notified. Something like a Python @decorator never sends anyone a "you were mentioned" notification.
- HTML does not run. Tags typed into a box are shown as plain text.
- The copy button copies the box's content as written, with its spacing and indentation.
- In share text on X, share cards and search result descriptions, the box frame disappears and only its text remains.
- Boxes are part of the entry, so the 10,000-character limit still applies. You can use several boxes in one entry, with normal text between them.
Common mistakes
Forgetting the closing line
Without the closing line no box is made; your text appears as plain text, backticks included.
What you write
```prompt Summarise this.
What the site shows
```prompt Summarise this.
Writing the content on the opening line
Anything after the word prompt on the opening line counts as the label. The content always starts on the next line. Writing ```prompt Summarise this.``` makes no box; put the text on the next line as in the examples above.
Using another mark instead of a backtick
Boxes open only with the backtick character; an apostrophe or quotation mark does not work. If the backtick is hard to find on your keyboard, use the prompt and </> code buttons instead.
Other formatting tools
The other toolbar buttons make writing entries easier too:
- (bkz: topic) creates a visible link to a topic; bkz is the sözlük shorthand for "see".
- Putting a word between single backticks (
word) turns the word itself into a link to that topic. - The star button shows only * in the text and opens the topic on hover.
- The spoiler button puts spoiler marks before and after the selected text.
- The link button adds a labelled link in the form [address text to show].
- #123 links to an entry and @username links to a writer.
Questions
Have my old entries changed?
No. Entries without boxes look exactly as before.
Can I edit an entry to add a box?
Yes. The edit screen has the same buttons. An edited entry goes back to review as usual.
What if the copy button does not work?
Some in-app browsers block clipboard access. The site tries another way first; if that also fails, it says it could not copy. You can then select the text in the box and copy it by hand.
How does it look on a phone?
Boxes fit the screen width. Long code lines never widen the page; they scroll sideways inside the box.
Last updated: 2026-11-14