Code
Code needs to look like code. Mixed in with regular prose, a variable name or a file path is easy to misread as part of the sentence around it , a monospaced font and a distinct background fix that instantly. Zelares gives you two ways to format code depending on how much of it you're writing: inline code for a word or two inside a sentence, and code blocks for anything that spans multiple lines.
Inline code
Wrap a word or phrase in one or more matching backtick runs to format it as inline code. Maximal runs let code contain backticks without leaking Markdown decorations into the literal content.
Run `npm install` before starting the app.Code blocks
Wrap block code in backtick or tilde fences of at least three markers on their own lines. Matching or longer closing fences, up to three leading spaces, and indented code are supported; everything inside remains literal source, including links and headings.
```javascript
function greet() {
console.log("Hello world");
}
```Language labels and current limits
Add a language name directly after the opening fence to preserve language metadata and show the language label in the editor's code-block controls. The current editor does not promise full language-specific syntax coloring for every language; leave the language off when you only need a monospace source block. Published rendering may apply its own code-class behavior.
```python
def greet():
print("Hello world")
```Context menu support
In the Zelares editor, select text and choose Format, then Code from the context menu to toggle inline code without typing backticks yourself. To insert an empty fenced block at the cursor, use Insert, then Code Block instead.
Related pages
For diagrams rendered from fenced code blocks, see Mermaid Diagrams. For the full set of insert and formatting actions, see Context Menu.