JujuEdit tips

Undocumented shortcuts

JujuEdit undocumented shortcuts
Shortcut Effect
Ctrl+Shift+D Block cursor
Ctrl+Shift+V Paste as HTML formatted
Ctrl+Shift+/ Googytext (custom text rendering engine)
Ctrl+= Increase font size (not Ctrl+Shift+M, as documented)
Ctrl+- Decrease font size (not Ctrl+Shift+N, as documented)
Ctrl+Shift+= (Ctrl++) Increase line spacing
Ctrl+Shift+- (Ctrl+_) Decrease line spacing

Syntax highlighting

The syntax highlight engine allows you to specify either coloured text on a white background, or black text on a coloured background. Different foreground and background colours cannot be mixed. Colour codes are one or two digits. The single or second digit defines the colour, and the leading digit if present selects the text style and specifies whether the colour applies to the foreground (odd numbers) or background (even numbers).

JujuEdit format modes
Sequence Colour applies to Style
0–f Text Plain
10–1f Background Plain
20–2f Text Italic
30–3f Background Italic
40–4f Text Bold
50–5f Background Bold
60–6f Text Bold italic
70–7f Background Bold italic
80–8f Text Plain; first character underlined
90–9f Background Plain; first character underlined
a0–af Text Italic; first character underlined
b0–bf Background Italic; first character underlined
c0–cf Text Bold; first character underlined
d0–df Background Bold; first character underlined
e0–ef Text Bold italic; first character underlined
f0–ff Background Bold italic; first character underlined
g0–hf Drawn as selected text
i0–jf Drawn as selected text; italic
k0–lf Drawn as selected text; bold
m0–nf Drawn as selected text; bold italic
o0–pf Drawn as selected text; first character underlined
q0–rf Drawn as selected text; italic; first character underlined
s0–tf Drawn as selected text; bold; first character underlined
u0–vf Drawn as selected text; bold italic; first character underlined

Colour modes

The following are for standard display; for reverse video, the colours are inverted. Absent or even leading digits apply the colour to the text (e.g. as 2 indicates green, then 2 and 22 are green text on a white background) and odd leading digits apply the colour to the background (e.g. 12 and 32 are black text on a green background).

JujuEdit colour codes
Code As coloured text As coloured background
0, 10, 20 … 000000 7F7F7F
1, 11, 21 … 0000FF 7F7FFF
2, 12, 22 … 008000 7FBF7F
3, 13, 23 … FF0000 FF7F7F
4, 14, 24 … 808000 BFBF7F
5, 15, 25 … FF8800 FFC37F
6, 16, 26 … 004444 7FA1A1
7, 17, 27 … 444444 A1A1A1
8, 18, 28 … 7F7F7F BFBFBF
9, 19, 29 … 7F7FFF BFBFFF
a, 1a, 2a … 7FBF7F BFDFBF
b, 1b, 2b … FF7F7F FFBFBF
c, 1c, 2c … BFBF7F DFDFBF
d, 1d, 2d … FFC37F FFE1BF
e, 1e, 2e … 7FA1A1 BFD0D0
f, 1f, 2f … A1A1A1 D0D0D0

Text formats

JujuEdit defaults to UTF-8 with no byte order mark.

After accidentally hitting ctrl+2/3/4 and seeing all the text get convert to pseudo-Chinese or other nonsense, simply press ctrl+shift+T (Auto Detect Mode from the binary mode toolbar button, or View → Text Mode → Auto Detect from the menu bar). This will restore the correct text format and auto-detect UTF-8. Although 1-byte is normally selected (arguably a bug), manually selecting 1-byte (even when it is already selected) will take the request literally and select ASCII, as UTF-8 is a variable byte length encoding.

Since JujuEdit has fully non-destructive format interpretation, none of these choices have any effect on the contents of the file and will not result in a loss of data. As a test, select ctrl+4, save, close JujuEdit and re-open the file: the file opens in its original format exactly as it was before.

Use Tools → Convert Text to… to permanently change the text encoding; characters not supported in the target text encoding will be altered by this step. This step can be undone, but Auto Detect Mode must be invoked manually afterwards as this is not covered by undo.

JujuEdit shrine