Files
RedBear-OS/local/recipes/kde/kf6-syntaxhighlighting/source/autotests/folding/highlight.t2t.fold
T

183 lines
4.3 KiB
Plaintext

header-line1: document title
header-line2: author name, email
header-line3: date, version
txt2tags sample
% Comment Line ALERT TODO FIXME
<beginfold id='1'>%%%</beginfold id='1'>
Comment Block
<endfold id='1'>%%%</endfold id='1'>
%!--includeconf: config.t2t
% disabled here because there is no external file
%!preproc: 'JUST A TEST' ' '
%!postproc: '(?i)(<body)' '\1 id="shots"'
%!postproc: '(?i)(</title>)' ' shots\1'
%!--include: menu.t2t
<endfold id='2'></endfold id='2'><beginfold id='2'>= Title 1 =</beginfold id='2'>
<endfold id='2'></endfold id='2'><beginfold id='2'>== My Subtitle 1 ==[some definition]</beginfold id='2'>
Some examples:
- A paragraph with **bold**, //italic// and --strike--.
- You can even __underline your docs__!
- And use **//bold and italic//**
- or //**italic and bold**//
Here is a nice pic: [img/t2tpowered.png].
- And a [link to a cool website http://txt2tags.sf.net]!
- A table :
|| Name | Age | Gender |
| John | 33 | Male |
| Mary | 19 | Female |
``` A verbatim line
And it's working for ``special code`` like this.
<beginfold id='3'>```</beginfold id='3'>
A verbatim block
<endfold id='3'>```</endfold id='3'>
Raw strings:
""" A raw line
<beginfold id='4'>"""</beginfold id='4'>
A raw block
<endfold id='4'>"""</endfold id='4'>
Tagged strings:
''' A tagged line
<beginfold id='5'>'''</beginfold id='5'>
A tagged block
<endfold id='5'>'''</endfold id='5'>
And remember,
A TAB in front of the line does a quotation.
More TABs, more depth (if allowed).
Horizontal lines:
--------------------------------------------------------
^ thin or large v
========================================================
<endfold id='2'></endfold id='2'><beginfold id='2'>== My Subtitle 2 ==</beginfold id='2'>
Lorem ipsum etc
Lorem ipsum etc Lorem ipsum etc
- Test d'écriture avec des accents à la française. Ça marche ou pas ?
<endfold id='2'></endfold id='2'><beginfold id='2'>== My Subtitle 3 ==</beginfold id='2'>
Lorem ipsum etc
Lorem ipsum etc
Here is a direct link: http://kde.org
- Another boring part...
<endfold id='2'></endfold id='2'><beginfold id='2'>=== My Subsubtitle 1 ===</beginfold id='2'>
//It's a level 3 header//
- list 1
- list 2
- list 2b
- list 3
<endfold id='2'></endfold id='2'><beginfold id='2'>=== My Subsubtitle 2 ===</beginfold id='2'>
//It's another level 3 header//
+ ordered list 1
+ list 2
+ list 2B
+ list 2C
+ list 3
<endfold id='2'></endfold id='2'><beginfold id='2'>== My Subtitle 4 ==</beginfold id='2'>
The handy ``%%date`` macro expands to the current date.
So today is %%date on the ISO ``YYYYMMDD`` format.
You can also specify the date format with the %? flags,
as ``%%date(%m-%d-%Y)`` which gives: %%date(%m-%d-%Y).
<endfold id='2'></endfold id='2'><beginfold id='2'>= Images =</beginfold id='2'>
The image mark is as simple as it can be: ``[filename]``.
[img/photo.jpg]
And with some targets the image is linkable :
[[img/photo.jpg] http://www.txt2tags.org]
<endfold id='2'></endfold id='2'><beginfold id='2'>= Tables =</beginfold id='2'>
Use pipes to compose table rows and cells.
Double pipe at the line beginning starts a heading row.
Natural spaces specify each cell alignment.
| cell 1.1 | cell 1.2 | cell 1.3 |
| cell 2.1 | cell 2.2 | cell 2.3 |
| cell 3.1 | cell 3.2 | cell 3.3 |
|| heading 1 | heading 2 | heading 3 |
| cell 1.1 | cell 1.2 | cell 1.3 |
| cell 2.1 | cell 2.2 | cell 2.3 |
|_ heading 1 | cell 1.1 | cell 1.2 |
| heading 2 | cell 2.1 | cell 2.2 |
| heading 3 | cell 3.1 | cell 3.2 |
|/ heading | heading 1 | heading 2 |
| heading 1 | cell 1.1 | cell 1.2 |
| heading 2 | cell 2.1 | cell 2.2 |
Without the last pipe, no border:
| cell 1.1 | cell 1.2 | cell 1.3
| cell 2.1 | cell 2.2 | cell 2.3
| cell 3.1 | cell 3.2 | cell 3.3
|| heading 1 | heading 2 | heading 3
| cell 1.1 | cell 1.2 | cell 1.3
| cell 2.1 | cell 2.2 | cell 2.3
|_ heading 1 | cell 1.1 | cell 1.2
| heading 2 | cell 2.1 | cell 2.2
| heading 3 | cell 3.1 | cell 3.2
|/ heading | heading 1 | heading 2
| heading 1 | cell 1.1 | cell 1.2
| heading 2 | cell 2.1 | cell 2.2
<endfold id='2'></endfold id='2'><beginfold id='2'>= Other Title =</beginfold id='2'>
nothing to say here...