Setting fonts in notes

Operating system

Windows

Joplin version

3.7.21

Desktop version info

Joplin 3.7.21 (prod, win32)

Device: win32, Intel(R) Core(TM) i5-9600 CPU @ 3.10GHz
Sync Version: 3
Profile Version: 54
Keychain Supported: Yes
Alternative instance ID: -
Sync target: (None)
Editor: Rich Text

Revision: e41516e

Backup: 1.5.1

What issue do you have?

I'm trying to understand how fonts work in Joplin. Mostly, I just want a normal body text font, and another, fixed/monospace font (Courier New) to denote Linux commands/output. I don't want the monospace font to be the default body text font, I want the other one to be the default.

I copied some text from Keepnote, and pasted it into Joplin, and it comes out basically perfect. However, since apparently out of the box, there's no way for me to just highlight a certain portion of text in Joplin and change its font features, I'd like to know the best way to get the same font and size I had in Keepnote in Joplin.

Formatting text as code changes the font to a monospace font, but also applies a gray background colour, which I don't want. I also don't understand what are the technical implications of formatting something as code versus not doing that. Frankly, every time I try to understand Markdown vs. HTML vs. Rich Text, I get very confused.

Any help would be appreciated. So far, Joplin looks excellent. Intuitive, fast, well-organized and not overly complex.

For commands and terminal output you don't need to fight fonts: the Markdown editor renders code automatically in a monospace font. Put single commands in backticks and multi-line output in fenced code blocks made of three backticks, and the body text keeps its normal font. This is covered in Joplin's official Markdown guide. If you later want to change the look across all notes, the documented way is a userstyle.css in your profile folder, which restyles the rendered notes through CSS. My guess is that pasting from Keepnote into the rich text editor brought inline font styling along; switching that note to the Markdown editor and wrapping the command parts in code blocks would be the cleaner fix.

Hi,

Interesting question and I understand what you're saying about the code blocks, the gray blocks, and the monospace.

I don't have a working solution for you. I don't know of any way to have multiple fonts on a page.

Thanks. Yes, but, as I tried to communicate, I never understood markdown. I find it very confusing. Maybe an example will help. In this one, the monospaced font, Courier displays
the way I want it to.

EDIT: I can't paste these two excerpts of text without the forum software formatting it as HTML. How do I prevent that, so you can see the code?

iptables, netfilter, nftables Perplexity:


Netfilter is the Linux-kernel packet-processing framework; iptables is one userspace tool/frontend for configuring rules through it. In short: Netfilter is the engine and hook system in the kernel; iptables is the older command-line interface and rule format used to tell that engine what to do.

How they relate
Netfilter provides hooks at points in the Linux network stack—such as packets arriving, being forwarded, or leaving the host. Kernel modules register callbacks at those hooks, enabling filtering, NAT, logging, and packet mangling.


iptables is the legacy xtables userspace utility that creates, deletes, and lists IPv4 rules in kernel tables such as filter, nat, and mangle. It does not itself provide the kernel hooks; it relies on Netfilter and associated kernel modules.netfilter


Practical example

When you run:

bashiptables -A INPUT -p tcp --dport 8080 -j ACCEPT

iptables sends that rule to the kernel’s xtables/Netfilter machinery. Netfilter’s hooks then evaluate the rule as packets reach the relevant point in the network stack, permitting TCP traffic to local port 8080.


Where nftables fits
nftables is not a third, unrelated system: it is the newer Netfilter packet-classification framework and replaces the old iptables/xtables frontend and runtime evaluation components. It uses the same Netfilter hooks, connection tracking, NAT, logging, and userspace queueing infrastructure, but is configured with nft rather than iptables.documentation.ubuntu+1
On current Debian/Ubuntu systems, the iptables command may actually be an iptables-nft compatibility wrapper that creates nftables rules. Legacy iptables-legacy rules are separate from nftables rules, so it is worth checking which backend is active:

bashsudo iptables -V sudo nft list ruleset

iptables -V will typically show either (legacy) or (nf_tables).
 




 

In this example, it doesn't work the way I want. I think it uses one of Joplin's choices of fonts.

Installed 2026-08-08


demented@rpi4:/ $ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.7
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Thanks.

Code blocks ensure that any text in the code block is displayed verbatim, without the markdown parser or renderer interpreting or rendering special characters inside the code block (aside from syntax highlighting the code language if applicable)

Your case where you're trying to show an example of code fences without the forum rendering it is actually a good example of this: to make the forum show the raw markup, nest all of it inside another code block (using 1 extra backtick for nesting), e.g:

````nested-code-fence-example
## iptables, netfilter, nftables — Perplexity

Netfilter is the Linux-kernel packet-processing framework; `iptables` is one userspace tool/frontend for configuring rules through it. In short: Netfilter is the engine and hook system in the kernel; `iptables` is the older command-line interface and rule format used to tell that engine what to do.

### How they relate

Netfilter provides hooks at points in the Linux network stack—such as packets arriving, being forwarded, or leaving the host. Kernel modules register callbacks at those hooks, enabling filtering, NAT, logging, and packet mangling.

`iptables` is the legacy xtables userspace utility that creates, deletes, and lists IPv4 rules in kernel tables such as `filter`, `nat`, and `mangle`. It does not itself provide the kernel hooks; it relies on Netfilter and associated kernel modules.

### Practical example

When you run:

```bash
iptables -A INPUT -p tcp --dport 8080 -j ACCEPT
```

`iptables` sends that rule to the kernel's xtables/Netfilter machinery. Netfilter's hooks then evaluate the rule as packets reach the relevant point in the network stack, permitting TCP traffic to local port 8080.

### Where nftables fits

`nftables` is not a third, unrelated system: it is the newer Netfilter packet-classification framework and replaces the old iptables/xtables frontend and runtime evaluation components. It uses the same Netfilter hooks, connection tracking, NAT, logging, and userspace queueing infrastructure, but is configured with `nft` rather than `iptables`.

On current Debian/Ubuntu systems, the `iptables` command may actually be an `iptables-nft` compatibility wrapper that creates nftables rules. Legacy `iptables-legacy` rules are separate from nftables rules, so it is worth checking which backend is active:

```bash
sudo iptables -V
sudo nft list ruleset
```

`iptables -V` will typically show either `(legacy)` or `(nf_tables)`.

---

In this example, it doesn't work the way I want. I think it uses one of Joplin's choices of fonts.

**Installed 2026-08-08**

```console
demented@rpi4:/ $ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.7
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
```

Thanks.
````

Thanks. As you can tell, I don't know what I'm doing.

Displaying the way I want it to:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>iptables, netfilter, nftables</title>
</head><body>Perplexity:<br/>
<br/>
<br/>
Netfilter is the Linux-kernel packet-processing framework; iptables is one userspace tool/frontend for configuring rules through it. In short: Netfilter is the engine and hook system in the kernel; iptables is the older command-line interface and rule format used to tell that engine what to do.<br/>
<br/>
How they relate<br/>
Netfilter provides hooks at points in the Linux network stack—such as packets arriving, being forwarded, or leaving the host. Kernel modules register callbacks at those hooks, enabling filtering, NAT, logging, and packet mangling.<br/>
<br/>
<br/>
iptables is the legacy xtables userspace utility that creates, deletes, and lists IPv4 rules in kernel tables such as filter, nat, and mangle. It does not itself provide the kernel hooks; it relies on Netfilter and associated kernel modules.netfilter<br/>
<br/>
<br/>
Practical example<br/>
<br/>
When you run:<br/>
<br/>
<span style="font-family: Courier New">bashiptables -A INPUT -p tcp --dport 8080 -j ACCEPT<br/>
</span><br/>
iptables sends that rule to the kernel’s xtables/Netfilter machinery. Netfilter’s hooks then evaluate the rule as packets reach the relevant point in the network stack, permitting TCP traffic to local port 8080.<br/>
<br/>
<br/>
Where nftables fits<br/>
nftables is not a third, unrelated system: it is the newer Netfilter packet-classification framework and replaces the old iptables/xtables frontend and runtime evaluation components. It uses the same Netfilter hooks, connection tracking, NAT, logging, and userspace queueing infrastructure, but is configured with nft rather than iptables.documentation.ubuntu+1<br/>
On current Debian/Ubuntu systems, the iptables command may actually be an iptables-nft compatibility wrapper that creates nftables rules. Legacy iptables-legacy rules are separate from nftables rules, so it is worth checking which backend is active:<br/>
<br/>
<span style="font-family: Courier New">bashsudo iptables -V sudo nft list ruleset<br/>
</span><br/>
iptables -V will typically show either (legacy) or (nf_tables).<br/>
&nbsp; <br/>
<br/>
<br/>
<br/>
<br/>
&nbsp; <br/>
<br/>
</body></html>

.
.

NOT displaying the way I want it to:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>WiFi-Enable Disable</title>
</head><body><span style="font-size: 12pt">2026-10-14<br/>
<br/>
<br/>
Disabled WiFi via shell<br/>
<br/>
<tt>MyAccount@rpi4:/ $ sudo rfkill block wifi</tt><br/>
<br/>
<br/>
to reverse this and re-enable WiFi:<br/>
<br/>
<tt>sudo rfkill unblock wifi</tt></span></body></html>

The portions of text I want to display in Courier News display in a monospace font, but not the Courier New I want.

The HTML code you're trying to use is literally 26 years old and extremely outdated. You can use styles in Joplin like this:

<span style="font-family: 'Courier New'">sample text</span>

and so on. You don't need the obsolete HTML tag soup :sweat_smile:.

Hmm..I don't know how old code is, I don't understand code. When I copy and paste documentation from the web, I assume most will be in HTML. If I have manually reformat a lot of it via markdown, that's going to be a lot of extra work. Is there no other way to do this via the GUI?

Recent joplin versions have a "paste as markdown" option in the markdown editor's right click context menu, so if you copy text from a web page, you can then right click > paste as markdown in the markdown editor and joplin will convert the clipboard HTML to markdown for you

The rich text editor also does this automatically with any paste (if you use the rich text editor rather than the markdown editor)

Have you tried using Joplin Web Clipper | Joplin? Even if you do copy the text manually, you should only copy stuff from within the body element, and not !DOCTYPE, head, etc. which make no sense in the Joplin's context.

I don't see to have that menu option when I right click to paste content. Here's my version:

Joplin 3.7.21 (prod, win32)

Device: win32, Intel(R) Core(TM) i5-9600 CPU @ 3.10GHz
Sync Version: 3
Profile Version: 54
Keychain Supported: Yes
Alternative instance ID: -
Sync target: (None)
Editor: Rich Text

Revision: e41516e

Backup: 1.5.1

If you're in the rich text editor, you won't see that option, instead the rich text editor will automatically convert clipboard html to markdown on a normal paste (right click > paste or ctrl + v).

note: in the rich text editor, you'll never see the markdown source, it natively shows the HTML rendered content, and any change you make gets converted back to markdown behind the scenes.

One addition to the above: if you're in the rich text editor, and if you're pasting HTML as plain text (e.g. if you copy html code directly from a text editor, rather than something that would populate the clipboard text/html category like copying content from a web page in a browser), that won't behave as you're expecting (the html will get escaped, and you will see what appears to be the raw HTML).

For example, if you have this as plain-text in your clipboard:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>WiFi-Enable Disable</title>
</head><body><span style="font-size: 12pt">2026-10-14<br/>
<br/>
<br/>
Disabled WiFi via shell<br/>
<br/>
<tt>MyAccount@rpi4:/ $ sudo rfkill block wifi</tt><br/>
<br/>
<br/>
to reverse this and re-enable WiFi:<br/>
<br/>
<tt>sudo rfkill unblock wifi</tt></span></body></html>

and you paste that in the rich text editor, the resulting markdown will be:

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;  
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;  
&lt;head&gt;  
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;  
&lt;title&gt;WiFi-Enable Disable&lt;/title&gt;  
&lt;/head&gt;&lt;body&gt;&lt;span style="font-size: 12pt"&gt;2026-10-14&lt;br/&gt;  
&lt;br/&gt;  
&lt;br/&gt;  
Disabled WiFi via shell&lt;br/&gt;  
&lt;br/&gt;  
&lt;tt&gt;MyAccount@rpi4:/ \$ sudo rfkill block wifi&lt;/tt&gt;&lt;br/&gt;  
&lt;br/&gt;  
&lt;br/&gt;  
to reverse this and re-enable WiFi:&lt;br/&gt;  
&lt;br/&gt;  
&lt;tt&gt;sudo rfkill unblock wifi&lt;/tt&gt;&lt;/span&gt;&lt;/body&gt;&lt;/html&gt;

Where all of the < and > characters are escaped, so the HTML isn't rendered

The only way to paste raw html as plaintext and have it rendered in the rich text editor would be to do that paste in the markdown editor (it will paste as just plain text in the markdown editor), and then switch back to the rich text editor.

However, because the rich text editor converts any change back to markdown, any edits that you make in the rich text editor afterwards might either simplify the html or convert it to markdown instead, e.g. with the above example, if you make an edit in the rich text editor after, it will be converted to:

<span style="font-size: 12pt;">
<br/>Disabled WiFi via shell  
<br/><tt>MyAccount@rpi4:/ \$ sudo rfkill block wifi</tt>  
<br/><br/>to reverse this and re-enable WiFi:  
<br/><tt>sudo rfkill unblock wifi</tt></span>

I find all this a lot to take in and somewhat confusing. I tried changing the font in the markdown window to "Courier New" instead of "courier new". It looked exactly the same.

I also installed the Joplin Web Clipper, but I don't understand how to use it.

Regarding your original question on different font/monospace font, if you just broadly want one specific font to be used for all code blocks in the rich text editor, you can use userstyle.css for this (no need to manually specify the font in the editor).

Go to tools | options | appearance | click the "Custom stylesheet for rendered markdown" button.

This will open a userstyle.css file in your text editor. Paste the following:

/* Set the monospace font to Courier New for code blocks and preformatted text */
code, pre {
    font-family: "Courier New", monospace !important;
}

Save the file, and restart joplin and code blocks will use courier new in the rich text editor and the markdown viewer.

I do wish there was a built-in setting for this (for some reason joplin has a setting for the non-monospace font for the rich text editor and viewer, but is missing a setting for the monospace font): [Feature Request] Preference for rendered md/rich text editor monospace font

I saw that, but is that going to use the font I want or another monospace/Courier-like font?

If your system has the Courier New font, then the above css will use Courier New. If Courier New isn't available it would fallback to a default monospace font

Wow, thanks very much for all the help, folks. I'm going to keep working at it and post back with my results/questions.

Hi,

The Joplin Web Clipper is a browser extension that runs on the desktop operating systems Windows, Linux, and Mac. What it does is it allows you to capture a web page and import it into Joplin. It manages to convert the HTML web page into Markdown and preserve all of the formatting from the web page.

Say you come across a website that has some valuable information that you would like to preserve. You can clip it into Joplin.

It's a way for you to clip web pages or parts of web pages into a note in Joplin. If you have Android, the Firefox web browser supports a Joplin web clipper plugin so that's there too. It's not called the Joplin Web Clipper. It's got some other name that I can't think of right now but if you need it I'll find it.

It's called Clip to Joppler.