mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-14 13:54:50 +00:00
31 lines
1012 B
Plaintext
31 lines
1012 B
Plaintext
|
created: 20130211142734000
|
||
|
creator: tobibeer
|
||
|
modified: 20140901061201603
|
||
|
modifier: andrewstern
|
||
|
tags: Formatting
|
||
|
title: Code
|
||
|
type: text/x-tiddlywiki
|
||
|
|
||
|
!Summary
|
||
|
You can render text monospaced text, e.g. using the font //Courier//, while preserving line breaks and not applying WikiText formating or turning WikiWords into links.
|
||
|
!!"""Monospaced Text Block"""
|
||
|
<html><pre>
|
||
|
{{{
|
||
|
Some plain text including WikiLinks
|
||
|
}}}
|
||
|
</pre></html>''Displays as:'' a HTML <pre> element
|
||
|
{{{
|
||
|
Some plain text including WikiLinks
|
||
|
}}}
|
||
|
<<<
|
||
|
''Note:'' Code blocks are displayed using a white-space 'as-is', fixed-width font without no word-wrapping -- displayed in a box.
|
||
|
<<<
|
||
|
!!"""Monospaced Inline Text"""
|
||
|
Alternatively, you can also display monospaced text __inline__ by wrapping the text in three braces <html><code>{{{...}}}</code></html>:
|
||
|
<html><pre>{{{inline //code//}}}</pre></html>''Displays as:'' a HTML <code> element
|
||
|
{{{inline //code//}}}
|
||
|
<<<
|
||
|
''Note:'' Inline code uses a white-space 'collapsed', word-wrapped, fixed-width font.
|
||
|
|
||
|
|