Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop

This commit is contained in:
Adorian Doran 2025-03-12 21:42:43 +02:00
commit fc4712240c
27 changed files with 542 additions and 369 deletions

View File

@ -9,7 +9,7 @@
"pOsGYCXsbNQG" "pOsGYCXsbNQG"
], ],
"title": "User Guide", "title": "User Guide",
"notePosition": 80, "notePosition": 70,
"prefix": null, "prefix": null,
"isExpanded": false, "isExpanded": false,
"type": "text", "type": "text",
@ -1024,21 +1024,21 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "CdNpE2pqjmI6", "value": "zEY4DaJG4YT5",
"isInheritable": false, "isInheritable": false,
"position": 10 "position": 10
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "6f9hih2hXXZk", "value": "CdNpE2pqjmI6",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "zEY4DaJG4YT5", "value": "6f9hih2hXXZk",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 30
}, },
@ -1642,25 +1642,25 @@
"position": 30 "position": 30
}, },
{ {
"type": "label", "type": "relation",
"name": "iconClass", "name": "internalLink",
"value": "bx bxs-layout", "value": "x3i7MxGccDuM",
"isInheritable": false, "isInheritable": false,
"position": 40 "position": 40
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "x3i7MxGccDuM", "value": "_lbSettings",
"isInheritable": false, "isInheritable": false,
"position": 50 "position": 50
}, },
{ {
"type": "relation", "type": "label",
"name": "internalLink", "name": "iconClass",
"value": "_lbSettings", "value": "bx bxs-layout",
"isInheritable": false, "isInheritable": false,
"position": 60 "position": 40
} }
], ],
"format": "markdown", "format": "markdown",
@ -1886,6 +1886,13 @@
"isInheritable": false, "isInheritable": false,
"position": 40 "position": 40
}, },
{
"type": "relation",
"name": "internalLink",
"value": "ivYnonVFBxbQ",
"isInheritable": false,
"position": 50
},
{ {
"type": "label", "type": "label",
"name": "shareAlias", "name": "shareAlias",
@ -1899,13 +1906,6 @@
"value": "bx bxs-tree-alt", "value": "bx bxs-tree-alt",
"isInheritable": false, "isInheritable": false,
"position": 50 "position": 50
},
{
"type": "relation",
"name": "internalLink",
"value": "ivYnonVFBxbQ",
"isInheritable": false,
"position": 60
} }
], ],
"format": "markdown", "format": "markdown",
@ -1946,23 +1946,30 @@
"mime": "text/html", "mime": "text/html",
"attributes": [ "attributes": [
{ {
"type": "label", "type": "relation",
"name": "iconClass", "name": "internalLink",
"value": "bx bx-sidebar", "value": "x3i7MxGccDuM",
"isInheritable": false, "isInheritable": false,
"position": 10 "position": 10
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "x3i7MxGccDuM", "value": "p9kXRFAkwN4o",
"isInheritable": false,
"position": 20
},
{
"type": "relation",
"name": "internalLink",
"value": "OR8WJ7Iz9K4U",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 30
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "oPVyFC7WL2Lp", "value": "OFXdgB2nNk1F",
"isInheritable": false, "isInheritable": false,
"position": 40 "position": 40
}, },
@ -1976,37 +1983,30 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "OR8WJ7Iz9K4U", "value": "oPVyFC7WL2Lp",
"isInheritable": false, "isInheritable": false,
"position": 70 "position": 60
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "CdNpE2pqjmI6", "value": "CdNpE2pqjmI6",
"isInheritable": false, "isInheritable": false,
"position": 80 "position": 70
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "SynTBQiBsdYJ", "value": "SynTBQiBsdYJ",
"isInheritable": false, "isInheritable": false,
"position": 90 "position": 80
}, },
{ {
"type": "relation", "type": "label",
"name": "internalLink", "name": "iconClass",
"value": "OFXdgB2nNk1F", "value": "bx bx-sidebar",
"isInheritable": false, "isInheritable": false,
"position": 100 "position": 10
},
{
"type": "relation",
"name": "internalLink",
"value": "p9kXRFAkwN4o",
"isInheritable": false,
"position": 110
} }
], ],
"format": "markdown", "format": "markdown",
@ -2211,14 +2211,14 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "CdNpE2pqjmI6", "value": "R7abl2fc6Mxi",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "R7abl2fc6Mxi", "value": "CdNpE2pqjmI6",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 30
}, },
@ -2522,21 +2522,21 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "6f9hih2hXXZk", "value": "zEY4DaJG4YT5",
"isInheritable": false, "isInheritable": false,
"position": 10 "position": 10
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "zEY4DaJG4YT5", "value": "iPIMuisry3hd",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "iPIMuisry3hd", "value": "6f9hih2hXXZk",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 30
}, },
@ -2900,28 +2900,28 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "6f9hih2hXXZk", "value": "MMiBEQljMQh2",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "MMiBEQljMQh2", "value": "IakOLONlIfGI",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 30
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "IakOLONlIfGI", "value": "iPIMuisry3hd",
"isInheritable": false, "isInheritable": false,
"position": 40 "position": 40
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "iPIMuisry3hd", "value": "6f9hih2hXXZk",
"isInheritable": false, "isInheritable": false,
"position": 50 "position": 50
}, },
@ -3435,14 +3435,21 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "nRhnJkTT8cPs", "value": "6f9hih2hXXZk",
"isInheritable": false,
"position": 10
},
{
"type": "relation",
"name": "internalLink",
"value": "4TIF1oA4VQRO",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "4TIF1oA4VQRO", "value": "nRhnJkTT8cPs",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 30
}, },
@ -3459,13 +3466,6 @@
"value": "bx bx-code", "value": "bx bx-code",
"isInheritable": false, "isInheritable": false,
"position": 50 "position": 50
},
{
"type": "relation",
"name": "internalLink",
"value": "6f9hih2hXXZk",
"isInheritable": false,
"position": 60
} }
], ],
"format": "markdown", "format": "markdown",
@ -3524,13 +3524,21 @@
"format": "markdown", "format": "markdown",
"dataFileName": "Content language & Right-to-le.md", "dataFileName": "Content language & Right-to-le.md",
"attachments": [ "attachments": [
{
"attachmentId": "RlBpP2KTDVIK",
"title": "image.png",
"role": "image",
"mime": "image/jpg",
"position": 10,
"dataFileName": "Content language & Right-t.png"
},
{ {
"attachmentId": "TlBagKsAj5ax", "attachmentId": "TlBagKsAj5ax",
"title": "image.png", "title": "image.png",
"role": "image", "role": "image",
"mime": "image/png", "mime": "image/png",
"position": 10, "position": 10,
"dataFileName": "Content language & Right-t.png" "dataFileName": "1_Content language & Right-t.png"
}, },
{ {
"attachmentId": "U9e8SLUEALiR", "attachmentId": "U9e8SLUEALiR",
@ -3538,7 +3546,60 @@
"role": "image", "role": "image",
"mime": "image/png", "mime": "image/png",
"position": 10, "position": 10,
"dataFileName": "1_Content language & Right-t.png" "dataFileName": "2_Content language & Right-t.png"
}
]
},
{
"isClone": false,
"noteId": "UYuUB1ZekNQU",
"notePath": [
"pOsGYCXsbNQG",
"KSZ04uQ2D1St",
"iPIMuisry3hd",
"UYuUB1ZekNQU"
],
"title": "Formatting",
"notePosition": 30,
"prefix": null,
"isExpanded": false,
"type": "text",
"mime": "text/html",
"attributes": [
{
"type": "relation",
"name": "internalLink",
"value": "nRhnJkTT8cPs",
"isInheritable": false,
"position": 10
}
],
"format": "markdown",
"dataFileName": "Formatting.md",
"attachments": [
{
"attachmentId": "7tX4ckOSF8jq",
"title": "image.png",
"role": "image",
"mime": "image/jpg",
"position": 10,
"dataFileName": "Formatting_image.png"
},
{
"attachmentId": "HP741oAz3ebU",
"title": "image.png",
"role": "image",
"mime": "image/png",
"position": 10,
"dataFileName": "1_Formatting_image.png"
},
{
"attachmentId": "yKVC2F773Mg7",
"title": "image.png",
"role": "image",
"mime": "image/png",
"position": 10,
"dataFileName": "2_Formatting_image.png"
} }
] ]
}, },
@ -3552,7 +3613,7 @@
"nRhnJkTT8cPs" "nRhnJkTT8cPs"
], ],
"title": "Formatting toolbar", "title": "Formatting toolbar",
"notePosition": 30, "notePosition": 40,
"prefix": null, "prefix": null,
"isExpanded": false, "isExpanded": false,
"type": "text", "type": "text",
@ -3561,23 +3622,23 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "BlN9DFI679QC", "value": "4TIF1oA4VQRO",
"isInheritable": false, "isInheritable": false,
"position": 10 "position": 10
}, },
{
"type": "relation",
"name": "internalLink",
"value": "BlN9DFI679QC",
"isInheritable": false,
"position": 20
},
{ {
"type": "label", "type": "label",
"name": "iconClass", "name": "iconClass",
"value": "bx bx-text", "value": "bx bx-text",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
},
{
"type": "relation",
"name": "internalLink",
"value": "4TIF1oA4VQRO",
"isInheritable": false,
"position": 30
} }
], ],
"format": "markdown", "format": "markdown",
@ -3627,7 +3688,7 @@
"mT0HEkOsz6i1" "mT0HEkOsz6i1"
], ],
"title": "Images", "title": "Images",
"notePosition": 40, "notePosition": 50,
"prefix": null, "prefix": null,
"isExpanded": false, "isExpanded": false,
"type": "text", "type": "text",
@ -3781,7 +3842,7 @@
"QEAPj01N5f7w" "QEAPj01N5f7w"
], ],
"title": "Links", "title": "Links",
"notePosition": 50, "notePosition": 60,
"prefix": null, "prefix": null,
"isExpanded": false, "isExpanded": false,
"type": "text", "type": "text",
@ -3837,7 +3898,7 @@
"S6Xx8QIWTV66" "S6Xx8QIWTV66"
], ],
"title": "Lists", "title": "Lists",
"notePosition": 60, "notePosition": 70,
"prefix": null, "prefix": null,
"isExpanded": false, "isExpanded": false,
"type": "text", "type": "text",
@ -3921,54 +3982,54 @@
"type": "text", "type": "text",
"mime": "text/markdown", "mime": "text/markdown",
"attributes": [ "attributes": [
{
"type": "label",
"name": "shareAlias",
"value": "code-notes",
"isInheritable": false,
"position": 20
},
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "CdNpE2pqjmI6", "value": "CdNpE2pqjmI6",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 10
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "iPIMuisry3hd", "value": "iPIMuisry3hd",
"isInheritable": false, "isInheritable": false,
"position": 40 "position": 20
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "QxEyIjRBizuC", "value": "QxEyIjRBizuC",
"isInheritable": false, "isInheritable": false,
"position": 50 "position": 30
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "BlN9DFI679QC", "value": "BlN9DFI679QC",
"isInheritable": false, "isInheritable": false,
"position": 60 "position": 40
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "4TIF1oA4VQRO", "value": "4TIF1oA4VQRO",
"isInheritable": false, "isInheritable": false,
"position": 70 "position": 50
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "s8alTXmpFR61", "value": "s8alTXmpFR61",
"isInheritable": false, "isInheritable": false,
"position": 80 "position": 60
},
{
"type": "label",
"name": "shareAlias",
"value": "code-notes",
"isInheritable": false,
"position": 20
}, },
{ {
"type": "label", "type": "label",
@ -4026,57 +4087,57 @@
"attributes": [ "attributes": [
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "imageLink",
"value": "6f9hih2hXXZk", "value": "DVJl4l3T8EG2",
"isInheritable": false, "isInheritable": false,
"position": 10 "position": 10
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "GLks18SNjxmC", "value": "6f9hih2hXXZk",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "zEY4DaJG4YT5", "value": "GLks18SNjxmC",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 30
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "5668rwcirq1t", "value": "wX4HbRucYSDD",
"isInheritable": false, "isInheritable": false,
"position": 40 "position": 40
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "GPERMystNGTB", "value": "zEY4DaJG4YT5",
"isInheritable": false, "isInheritable": false,
"position": 50 "position": 50
}, },
{ {
"type": "relation", "type": "relation",
"name": "imageLink", "name": "internalLink",
"value": "DVJl4l3T8EG2", "value": "RDslemsQ6gCp",
"isInheritable": false, "isInheritable": false,
"position": 60 "position": 60
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "wX4HbRucYSDD", "value": "5668rwcirq1t",
"isInheritable": false, "isInheritable": false,
"position": 70 "position": 70
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "RDslemsQ6gCp", "value": "GPERMystNGTB",
"isInheritable": false, "isInheritable": false,
"position": 80 "position": 80
}, },
@ -5204,14 +5265,14 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "GLks18SNjxmC", "value": "zEY4DaJG4YT5",
"isInheritable": false, "isInheritable": false,
"position": 10 "position": 10
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "zEY4DaJG4YT5", "value": "GLks18SNjxmC",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
}, },
@ -6166,14 +6227,14 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "CdNpE2pqjmI6", "value": "WOcw2SLH6tbX",
"isInheritable": false, "isInheritable": false,
"position": 40 "position": 40
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "WOcw2SLH6tbX", "value": "CdNpE2pqjmI6",
"isInheritable": false, "isInheritable": false,
"position": 50 "position": 50
}, },
@ -6425,35 +6486,35 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "CdNpE2pqjmI6", "value": "wX4HbRucYSDD",
"isInheritable": false, "isInheritable": false,
"position": 10 "position": 10
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "wX4HbRucYSDD", "value": "IakOLONlIfGI",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "IakOLONlIfGI", "value": "zEY4DaJG4YT5",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 30
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "zEY4DaJG4YT5", "value": "BCkXAVs63Ttv",
"isInheritable": false, "isInheritable": false,
"position": 40 "position": 40
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "BCkXAVs63Ttv", "value": "CdNpE2pqjmI6",
"isInheritable": false, "isInheritable": false,
"position": 50 "position": 50
}, },

View File

@ -49,13 +49,11 @@ Right click either the _Available launchers_ or _Visible launchers_ sections and
1. Set the `target` promoted attribute to the note to navigate to. 1. Set the `target` promoted attribute to the note to navigate to.
2. Optionally, set `hoistedNote` to hoist a particular note. See [Note Hoisting](../Navigation/Note%20Hoisting.md) for more information. 2. Optionally, set `hoistedNote` to hoist a particular note. See [Note Hoisting](../Navigation/Note%20Hoisting.md) for more information.
3. Optionally, set a `keyboardShortcut` to trigger the launcher. 3. Optionally, set a `keyboardShortcut` to trigger the launcher.
2. **Script Launcher** 2. **Script Launcher**
An advanced launcher which will run a script upon pressing. See [Scripts](../../Note%20Types/Code/Scripts.md) for more information. An advanced launcher which will run a script upon pressing. See [Scripts](../../Note%20Types/Code/Scripts.md) for more information.
1. Set `script` to point to the desired script to run. 1. Set `script` to point to the desired script to run.
2. Optionally, set a `keyboardShortcut` to trigger the launcher. 2. Optionally, set a `keyboardShortcut` to trigger the launcher.
3. **Custom Widget** 3. **Custom Widget**
Allows defining a custom widget to be rendered inside the launcher. See [Widget Basics](../../Developer%20Guides/Widget%20Basics.md) for more information. Allows defining a custom widget to be rendered inside the launcher. See [Widget Basics](../../Developer%20Guides/Widget%20Basics.md) for more information.
@ -63,4 +61,5 @@ Right click either the _Available launchers_ or _Visible launchers_ sections and
4. **Spacers** 4. **Spacers**
Launchers that create some distance between other launchers for better visual distinction. Launchers that create some distance between other launchers for better visual distinction.
Launchers are configured via predefined [Promoted Attributes](../../Advanced%20Usage/Attributes/Promoted%20Attributes.md). Launchers are configured via predefined [Promoted Attributes](../../Advanced%20Usage/Attributes/Promoted%20Attributes.md).

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 90 KiB

View File

@ -1,5 +1,5 @@
# Content language & Right-to-left support # Content language & Right-to-left support
![](1_Content%20language%20&%20Right-t.png) ![](Content%20language%20&%20Right-t.png)
A language hint can be provided for text notes. This option informs the browser or the desktop application about the language the note is written in (for example this might help with spellchecking), and it also determines whether the text is displayed from right-to-left for languages such as Arabic, Hebrew, etc. A language hint can be provided for text notes. This option informs the browser or the desktop application about the language the note is written in (for example this might help with spellchecking), and it also determines whether the text is displayed from right-to-left for languages such as Arabic, Hebrew, etc.

View File

@ -0,0 +1,10 @@
# Formatting
## Developer-specific formatting
### Keyboard shortcuts
This allows marking a portion of text as a shortcut key.
![](Formatting_image.png)
To apply this style, press the ![](2_Formatting_image.png) button in ![](1_Formatting_image.png) group from the [Formatting toolbar](Formatting%20toolbar.md). On the floating toolbar, the buttons appear when selecting a text.

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@
"pOsGYCXsbNQG" "pOsGYCXsbNQG"
], ],
"title": "User Guide", "title": "User Guide",
"notePosition": 80, "notePosition": 70,
"prefix": null, "prefix": null,
"isExpanded": true, "isExpanded": true,
"type": "text", "type": "text",
@ -1024,21 +1024,21 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "CdNpE2pqjmI6", "value": "zEY4DaJG4YT5",
"isInheritable": false, "isInheritable": false,
"position": 10 "position": 10
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "6f9hih2hXXZk", "value": "CdNpE2pqjmI6",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "zEY4DaJG4YT5", "value": "6f9hih2hXXZk",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 30
}, },
@ -1552,7 +1552,7 @@
"title": "Basic Concepts", "title": "Basic Concepts",
"notePosition": 60, "notePosition": 60,
"prefix": null, "prefix": null,
"isExpanded": true, "isExpanded": false,
"type": "text", "type": "text",
"mime": "text/html", "mime": "text/html",
"attributes": [ "attributes": [
@ -1579,7 +1579,7 @@
"title": "UI Elements", "title": "UI Elements",
"notePosition": 10, "notePosition": 10,
"prefix": null, "prefix": null,
"isExpanded": true, "isExpanded": false,
"type": "text", "type": "text",
"mime": "text/html", "mime": "text/html",
"attributes": [], "attributes": [],
@ -1642,25 +1642,25 @@
"position": 30 "position": 30
}, },
{ {
"type": "label", "type": "relation",
"name": "iconClass", "name": "internalLink",
"value": "bx bxs-layout", "value": "x3i7MxGccDuM",
"isInheritable": false, "isInheritable": false,
"position": 40 "position": 40
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "x3i7MxGccDuM", "value": "_lbSettings",
"isInheritable": false, "isInheritable": false,
"position": 50 "position": 50
}, },
{ {
"type": "relation", "type": "label",
"name": "internalLink", "name": "iconClass",
"value": "_lbSettings", "value": "bx bxs-layout",
"isInheritable": false, "isInheritable": false,
"position": 60 "position": 40
} }
], ],
"format": "html", "format": "html",
@ -1886,6 +1886,13 @@
"isInheritable": false, "isInheritable": false,
"position": 40 "position": 40
}, },
{
"type": "relation",
"name": "internalLink",
"value": "ivYnonVFBxbQ",
"isInheritable": false,
"position": 50
},
{ {
"type": "label", "type": "label",
"name": "shareAlias", "name": "shareAlias",
@ -1899,13 +1906,6 @@
"value": "bx bxs-tree-alt", "value": "bx bxs-tree-alt",
"isInheritable": false, "isInheritable": false,
"position": 50 "position": 50
},
{
"type": "relation",
"name": "internalLink",
"value": "ivYnonVFBxbQ",
"isInheritable": false,
"position": 60
} }
], ],
"format": "html", "format": "html",
@ -1946,23 +1946,30 @@
"mime": "text/html", "mime": "text/html",
"attributes": [ "attributes": [
{ {
"type": "label", "type": "relation",
"name": "iconClass", "name": "internalLink",
"value": "bx bx-sidebar", "value": "x3i7MxGccDuM",
"isInheritable": false, "isInheritable": false,
"position": 10 "position": 10
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "x3i7MxGccDuM", "value": "p9kXRFAkwN4o",
"isInheritable": false,
"position": 20
},
{
"type": "relation",
"name": "internalLink",
"value": "OR8WJ7Iz9K4U",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 30
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "oPVyFC7WL2Lp", "value": "OFXdgB2nNk1F",
"isInheritable": false, "isInheritable": false,
"position": 40 "position": 40
}, },
@ -1976,37 +1983,30 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "OR8WJ7Iz9K4U", "value": "oPVyFC7WL2Lp",
"isInheritable": false, "isInheritable": false,
"position": 70 "position": 60
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "CdNpE2pqjmI6", "value": "CdNpE2pqjmI6",
"isInheritable": false, "isInheritable": false,
"position": 80 "position": 70
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "SynTBQiBsdYJ", "value": "SynTBQiBsdYJ",
"isInheritable": false, "isInheritable": false,
"position": 90 "position": 80
}, },
{ {
"type": "relation", "type": "label",
"name": "internalLink", "name": "iconClass",
"value": "OFXdgB2nNk1F", "value": "bx bx-sidebar",
"isInheritable": false, "isInheritable": false,
"position": 100 "position": 10
},
{
"type": "relation",
"name": "internalLink",
"value": "p9kXRFAkwN4o",
"isInheritable": false,
"position": 110
} }
], ],
"format": "html", "format": "html",
@ -2063,7 +2063,7 @@
"title": "Note", "title": "Note",
"notePosition": 40, "notePosition": 40,
"prefix": null, "prefix": null,
"isExpanded": true, "isExpanded": false,
"type": "text", "type": "text",
"mime": "text/markdown", "mime": "text/markdown",
"attributes": [ "attributes": [
@ -2211,14 +2211,14 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "CdNpE2pqjmI6", "value": "R7abl2fc6Mxi",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "R7abl2fc6Mxi", "value": "CdNpE2pqjmI6",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 30
}, },
@ -2522,21 +2522,21 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "6f9hih2hXXZk", "value": "zEY4DaJG4YT5",
"isInheritable": false, "isInheritable": false,
"position": 10 "position": 10
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "zEY4DaJG4YT5", "value": "iPIMuisry3hd",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "iPIMuisry3hd", "value": "6f9hih2hXXZk",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 30
}, },
@ -2900,28 +2900,28 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "6f9hih2hXXZk", "value": "MMiBEQljMQh2",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "MMiBEQljMQh2", "value": "IakOLONlIfGI",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 30
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "IakOLONlIfGI", "value": "iPIMuisry3hd",
"isInheritable": false, "isInheritable": false,
"position": 40 "position": 40
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "iPIMuisry3hd", "value": "6f9hih2hXXZk",
"isInheritable": false, "isInheritable": false,
"position": 50 "position": 50
}, },
@ -3435,14 +3435,21 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "nRhnJkTT8cPs", "value": "6f9hih2hXXZk",
"isInheritable": false,
"position": 10
},
{
"type": "relation",
"name": "internalLink",
"value": "4TIF1oA4VQRO",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "4TIF1oA4VQRO", "value": "nRhnJkTT8cPs",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 30
}, },
@ -3459,13 +3466,6 @@
"value": "bx bx-code", "value": "bx bx-code",
"isInheritable": false, "isInheritable": false,
"position": 50 "position": 50
},
{
"type": "relation",
"name": "internalLink",
"value": "6f9hih2hXXZk",
"isInheritable": false,
"position": 60
} }
], ],
"format": "html", "format": "html",
@ -3524,13 +3524,21 @@
"format": "html", "format": "html",
"dataFileName": "Content language & Right-to-le.html", "dataFileName": "Content language & Right-to-le.html",
"attachments": [ "attachments": [
{
"attachmentId": "RlBpP2KTDVIK",
"title": "image.png",
"role": "image",
"mime": "image/jpg",
"position": 10,
"dataFileName": "Content language & Right-t.png"
},
{ {
"attachmentId": "TlBagKsAj5ax", "attachmentId": "TlBagKsAj5ax",
"title": "image.png", "title": "image.png",
"role": "image", "role": "image",
"mime": "image/png", "mime": "image/png",
"position": 10, "position": 10,
"dataFileName": "Content language & Right-t.png" "dataFileName": "1_Content language & Right-t.png"
}, },
{ {
"attachmentId": "U9e8SLUEALiR", "attachmentId": "U9e8SLUEALiR",
@ -3538,7 +3546,60 @@
"role": "image", "role": "image",
"mime": "image/png", "mime": "image/png",
"position": 10, "position": 10,
"dataFileName": "1_Content language & Right-t.png" "dataFileName": "2_Content language & Right-t.png"
}
]
},
{
"isClone": false,
"noteId": "UYuUB1ZekNQU",
"notePath": [
"pOsGYCXsbNQG",
"KSZ04uQ2D1St",
"iPIMuisry3hd",
"UYuUB1ZekNQU"
],
"title": "Formatting",
"notePosition": 30,
"prefix": null,
"isExpanded": false,
"type": "text",
"mime": "text/html",
"attributes": [
{
"type": "relation",
"name": "internalLink",
"value": "nRhnJkTT8cPs",
"isInheritable": false,
"position": 10
}
],
"format": "html",
"dataFileName": "Formatting.html",
"attachments": [
{
"attachmentId": "7tX4ckOSF8jq",
"title": "image.png",
"role": "image",
"mime": "image/jpg",
"position": 10,
"dataFileName": "Formatting_image.png"
},
{
"attachmentId": "HP741oAz3ebU",
"title": "image.png",
"role": "image",
"mime": "image/png",
"position": 10,
"dataFileName": "1_Formatting_image.png"
},
{
"attachmentId": "yKVC2F773Mg7",
"title": "image.png",
"role": "image",
"mime": "image/png",
"position": 10,
"dataFileName": "2_Formatting_image.png"
} }
] ]
}, },
@ -3552,7 +3613,7 @@
"nRhnJkTT8cPs" "nRhnJkTT8cPs"
], ],
"title": "Formatting toolbar", "title": "Formatting toolbar",
"notePosition": 30, "notePosition": 40,
"prefix": null, "prefix": null,
"isExpanded": false, "isExpanded": false,
"type": "text", "type": "text",
@ -3561,23 +3622,23 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "BlN9DFI679QC", "value": "4TIF1oA4VQRO",
"isInheritable": false, "isInheritable": false,
"position": 10 "position": 10
}, },
{
"type": "relation",
"name": "internalLink",
"value": "BlN9DFI679QC",
"isInheritable": false,
"position": 20
},
{ {
"type": "label", "type": "label",
"name": "iconClass", "name": "iconClass",
"value": "bx bx-text", "value": "bx bx-text",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
},
{
"type": "relation",
"name": "internalLink",
"value": "4TIF1oA4VQRO",
"isInheritable": false,
"position": 30
} }
], ],
"format": "html", "format": "html",
@ -3627,7 +3688,7 @@
"mT0HEkOsz6i1" "mT0HEkOsz6i1"
], ],
"title": "Images", "title": "Images",
"notePosition": 40, "notePosition": 50,
"prefix": null, "prefix": null,
"isExpanded": false, "isExpanded": false,
"type": "text", "type": "text",
@ -3781,7 +3842,7 @@
"QEAPj01N5f7w" "QEAPj01N5f7w"
], ],
"title": "Links", "title": "Links",
"notePosition": 50, "notePosition": 60,
"prefix": null, "prefix": null,
"isExpanded": false, "isExpanded": false,
"type": "text", "type": "text",
@ -3837,7 +3898,7 @@
"S6Xx8QIWTV66" "S6Xx8QIWTV66"
], ],
"title": "Lists", "title": "Lists",
"notePosition": 60, "notePosition": 70,
"prefix": null, "prefix": null,
"isExpanded": false, "isExpanded": false,
"type": "text", "type": "text",
@ -3921,54 +3982,54 @@
"type": "text", "type": "text",
"mime": "text/markdown", "mime": "text/markdown",
"attributes": [ "attributes": [
{
"type": "label",
"name": "shareAlias",
"value": "code-notes",
"isInheritable": false,
"position": 20
},
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "CdNpE2pqjmI6", "value": "CdNpE2pqjmI6",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 10
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "iPIMuisry3hd", "value": "iPIMuisry3hd",
"isInheritable": false, "isInheritable": false,
"position": 40 "position": 20
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "QxEyIjRBizuC", "value": "QxEyIjRBizuC",
"isInheritable": false, "isInheritable": false,
"position": 50 "position": 30
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "BlN9DFI679QC", "value": "BlN9DFI679QC",
"isInheritable": false, "isInheritable": false,
"position": 60 "position": 40
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "4TIF1oA4VQRO", "value": "4TIF1oA4VQRO",
"isInheritable": false, "isInheritable": false,
"position": 70 "position": 50
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "s8alTXmpFR61", "value": "s8alTXmpFR61",
"isInheritable": false, "isInheritable": false,
"position": 80 "position": 60
},
{
"type": "label",
"name": "shareAlias",
"value": "code-notes",
"isInheritable": false,
"position": 20
}, },
{ {
"type": "label", "type": "label",
@ -4026,57 +4087,57 @@
"attributes": [ "attributes": [
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "imageLink",
"value": "6f9hih2hXXZk", "value": "DVJl4l3T8EG2",
"isInheritable": false, "isInheritable": false,
"position": 10 "position": 10
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "GLks18SNjxmC", "value": "6f9hih2hXXZk",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "zEY4DaJG4YT5", "value": "GLks18SNjxmC",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 30
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "5668rwcirq1t", "value": "wX4HbRucYSDD",
"isInheritable": false, "isInheritable": false,
"position": 40 "position": 40
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "GPERMystNGTB", "value": "zEY4DaJG4YT5",
"isInheritable": false, "isInheritable": false,
"position": 50 "position": 50
}, },
{ {
"type": "relation", "type": "relation",
"name": "imageLink", "name": "internalLink",
"value": "DVJl4l3T8EG2", "value": "RDslemsQ6gCp",
"isInheritable": false, "isInheritable": false,
"position": 60 "position": 60
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "wX4HbRucYSDD", "value": "5668rwcirq1t",
"isInheritable": false, "isInheritable": false,
"position": 70 "position": 70
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "RDslemsQ6gCp", "value": "GPERMystNGTB",
"isInheritable": false, "isInheritable": false,
"position": 80 "position": 80
}, },
@ -5204,14 +5265,14 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "GLks18SNjxmC", "value": "zEY4DaJG4YT5",
"isInheritable": false, "isInheritable": false,
"position": 10 "position": 10
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "zEY4DaJG4YT5", "value": "GLks18SNjxmC",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
}, },
@ -6166,14 +6227,14 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "CdNpE2pqjmI6", "value": "WOcw2SLH6tbX",
"isInheritable": false, "isInheritable": false,
"position": 40 "position": 40
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "WOcw2SLH6tbX", "value": "CdNpE2pqjmI6",
"isInheritable": false, "isInheritable": false,
"position": 50 "position": 50
}, },
@ -6425,35 +6486,35 @@
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "CdNpE2pqjmI6", "value": "wX4HbRucYSDD",
"isInheritable": false, "isInheritable": false,
"position": 10 "position": 10
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "wX4HbRucYSDD", "value": "IakOLONlIfGI",
"isInheritable": false, "isInheritable": false,
"position": 20 "position": 20
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "IakOLONlIfGI", "value": "zEY4DaJG4YT5",
"isInheritable": false, "isInheritable": false,
"position": 30 "position": 30
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "zEY4DaJG4YT5", "value": "BCkXAVs63Ttv",
"isInheritable": false, "isInheritable": false,
"position": 40 "position": 40
}, },
{ {
"type": "relation", "type": "relation",
"name": "internalLink", "name": "internalLink",
"value": "BCkXAVs63Ttv", "value": "CdNpE2pqjmI6",
"isInheritable": false, "isInheritable": false,
"position": 50 "position": 50
}, },

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 B

View File

@ -13,20 +13,20 @@
<h1 data-trilium-h1>Code blocks</h1> <h1 data-trilium-h1>Code blocks</h1>
<div class="ck-content"> <div class="ck-content">
<figure class="image"> <p>
<img style="aspect-ratio:1078/307;" src="1_Code blocks_image.png" width="1078" <img src="1_Code blocks_image.png" alt="" />
height="307"> </p>
</figure>
<p>The code blocks feature allows entering pieces of code in text notes.</p> <p>The code blocks feature allows entering pieces of code in text notes.</p>
<p>Note that this feature is meant for generally small snippets of code. <p>Note that this feature is meant for generally small snippets of code.
For larger files such as an entire log, see the dedicated&nbsp;<a class="reference-link" For larger files such as an entire log, see the dedicated&nbsp;<a href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/FVuX89AJuFSw">[missing note]</a>&nbsp;note
href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/FVuX89AJuFSw">[missing note]</a>&nbsp;note
type instead.</p> type instead.</p>
<h2>Inserting a code block</h2>
<h2>Inserting a code block</h2>
<ul> <ul>
<li>Via the&nbsp;<a class="reference-link" href="Formatting%20toolbar.html">Formatting toolbar</a>, <li>Via the&nbsp;<a href="Formatting%20toolbar.html">Formatting toolbar</a>,
look for the look for the
<img src="Code blocks_image.png" width="46" height="33">button. <img src="Code blocks_image.png" alt="" />button.
<ul> <ul>
<li>Pressing directly on the icon will insert a code block with the language <li>Pressing directly on the icon will insert a code block with the language
that was selected most recently. If this is the first time a code block that was selected most recently. If this is the first time a code block
@ -42,35 +42,40 @@
</ul> </ul>
</li> </li>
</ul> </ul>
<h2>Syntax highlighting</h2>
<h2>Syntax highlighting</h2>
<p>Since TriliumNext v0.90.12, Trilium will try to offer syntax highlighting <p>Since TriliumNext v0.90.12, Trilium will try to offer syntax highlighting
to the code block. Note that the syntax highlighting mechanism is slightly to the code block. Note that the syntax highlighting mechanism is slightly
different than the one in&nbsp;<a class="reference-link" href="../Code.html">Code Notes</a>&nbsp;notes different than the one in&nbsp;<a href="../Code.html">Code Notes</a>&nbsp;notes
as different technologies are involved.</p> as different technologies are involved.</p>
<p>When the language is set to <i>Auto-detected</i>, Trilium will try to identify <p>When the language is set to <em>Auto-detected</em>, Trilium will try to
the programming language (or similar) that corresponds to the given snippet identify the programming language (or similar) that corresponds to the
of text and highlight it. If this is problematic, consider changing the given snippet of text and highlight it. If this is problematic, consider
language of the code block manually.</p> changing the language of the code block manually.</p>
<p>When the language is set to <i>Plain text</i>, there will be no syntax <p>When the language is set to <em>Plain text</em>, there will be no syntax
highlighting.</p> highlighting.</p>
<h2>Changing the language of a code block</h2>
<h2>Changing the language of a code block</h2>
<p>Simply click anywhere inside the code block and press again the code block <p>Simply click anywhere inside the code block and press again the code block
button in the&nbsp;<a class="reference-link" href="Formatting%20toolbar.html">Formatting toolbar</a>: button in the&nbsp;<a href="Formatting%20toolbar.html">Formatting toolbar</a>:
<br> <br
<img src="2_Code blocks_image.png" width="183" height="156"> />
<img src="2_Code blocks_image.png" alt="" />
</p> </p>
<h2>Adjusting the list of languages</h2>
<h2>Adjusting the list of languages</h2>
<p>The code blocks feature shares the list of languages with the&nbsp; <p>The code blocks feature shares the list of languages with the&nbsp;
<a <a
class="reference-link" href="../Code.html">Code Notes</a>&nbsp;note type.</p> href="../Code.html">Code Notes</a>&nbsp;note type.</p>
<p>The supported languages can be adjusted by going to&nbsp;<a class="reference-link" <p>The supported languages can be adjusted by going to&nbsp;<a href="../../Basic%20Concepts/UI%20Elements/Options.html">Options</a>,
href="../../Basic%20Concepts/UI%20Elements/Options.html">Options</a>, then <i>Code Notes</i> and then <em>Code Notes</em> and looking for the <em>Available MIME types in the dropdown</em> section.
looking for the <i>Available MIME types in the dropdown</i> section. Simply Simply check any of the items to add them to the list, or uncheck them
check any of the items to add them to the list, or uncheck them to remove to remove them from the list.</p>
them from the list.</p>
<p>Note that the list of languages is not immediately refreshed, you'd have <p>Note that the list of languages is not immediately refreshed, you'd have
to manually <a href="../../Troubleshooting/Refreshing%20the%20application.html">refresh the application</a>.</p> to manually <a href="../../Troubleshooting/Refreshing%20the%20application.html">refresh the application</a>.</p>
<p>&nbsp;</p>
</div> </div>
</div> </div>
</body> </body>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 90 KiB

View File

@ -13,10 +13,12 @@
<h1 data-trilium-h1>Content language &amp; Right-to-left support</h1> <h1 data-trilium-h1>Content language &amp; Right-to-left support</h1>
<div class="ck-content"> <div class="ck-content">
<figure class="image image-style-align-center"> <div>
<img style="aspect-ratio:906/557;" src="1_Content language & Right-t.png" <figure class="image">
alt="" width="906" height="557"> <img style="aspect-ratio:906/557;" src="Content language & Right-t.png"
width="906" height="557">
</figure> </figure>
</div>
<p>A language hint can be provided for text notes. This option informs the <p>A language hint can be provided for text notes. This option informs the
browser or the desktop application about the language the note is written browser or the desktop application about the language the note is written
in (for example this might help with spellchecking), and it also determines in (for example this might help with spellchecking), and it also determines

View File

@ -15,44 +15,51 @@
<div class="ck-content"> <div class="ck-content">
<p>Trilium allows two different editing experiences for text notes, based <p>Trilium allows two different editing experiences for text notes, based
on your preference.</p> on your preference.</p>
<p>To do so, go to&nbsp;<a class="reference-link" href="../../Basic%20Concepts/UI%20Elements/Options.html">Options</a>&nbsp;and <p>To do so, go to&nbsp;<a href="../../Basic%20Concepts/UI%20Elements/Options.html">Options</a>&nbsp;and
look for the <i>Text Notes</i> section. There is a corresponding section look for the <em>Text Notes</em> section. There is a corresponding section
called <i>Formatting toolbar</i>.</p> called <em>Formatting toolbar</em>.</p>
<h2>Floating</h2>
<h2>Floating</h2>
<p>The floating bar is a more minimalist option, in which the formatting <p>The floating bar is a more minimalist option, in which the formatting
is hidden behind two different popups.</p> is hidden behind two different popups.</p>
<h3>Block-level popup</h3>
<h3>Block-level popup</h3>
<p>The first popup is the block-level popup. This will appear to the left <p>The first popup is the block-level popup. This will appear to the left
of the current paragraph you are currently editing, as a sequence of dots: of the current paragraph you are currently editing, as a sequence of dots:
<br> <br
<img src="1_Formatting toolbar_image.png" width="281" height="35"> />
<img src="1_Formatting toolbar_image.png" alt="" />
</p> </p>
<p>Clicking this popup will reveal the formatting options that are specific <p>Clicking this popup will reveal the formatting options that are specific
to the entire paragraph, such as setting a heading, lists, tables, etc.</p> to the entire paragraph, such as setting a heading, lists, tables, etc.</p>
<p> <p>
<img src="3_Formatting toolbar_image.png" width="682" height="104"> <img src="3_Formatting toolbar_image.png" alt="" />
</p> </p>
<h3>Inline popup</h3>
<h3>Inline popup</h3>
<p>The inline popup appears automatically when selecting a text:</p> <p>The inline popup appears automatically when selecting a text:</p>
<p> <p>
<img src="Formatting toolbar_image.png" width="552" height="99"> <img src="Formatting toolbar_image.png" alt="" />
</p> </p>
<p>All the options here apply only to the selected portion of text, such <p>All the options here apply only to the selected portion of text, such
as changing the font size, or making the text bold.</p> as changing the font size, or making the text bold.</p>
<h2>Fixed</h2>
<h2>Fixed</h2>
<p>The fixed formatting offers a more traditional editing paradigm, usually <p>The fixed formatting offers a more traditional editing paradigm, usually
useful if a lot of formatting is needed.</p> useful if a lot of formatting is needed.</p>
<p>All the options are combined into a single toolbar that will appear as <p>All the options are combined into a single toolbar that will appear as
part of the&nbsp;<a class="reference-link" href="../../Basic%20Concepts/UI%20Elements/Ribbon.html">Ribbon</a>.</p> part of the&nbsp;<a href="../../Basic%20Concepts/UI%20Elements/Ribbon.html">Ribbon</a>.</p>
<figure <p>
class="image"> <img src="2_Formatting toolbar_image.png" alt="" />
<img style="aspect-ratio:913/162;" src="2_Formatting toolbar_image.png" </p>
width="913" height="162">
</figure>
<p>By default, if the toolbar does not fit on the screen, the rest of the <p>By default, if the toolbar does not fit on the screen, the rest of the
options will be grouped into a single option at the end. It is possible options will be grouped into a single option at the end. It is possible
to display items on multiple lines by checking the corresponding option to display items on multiple lines by checking the corresponding option
in the <i>Formatting toolbar</i> section.</p> in the <em>Formatting toolbar</em> section.</p>
</div> </div>
</div> </div>
</body> </body>

View File

@ -0,0 +1,32 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../style.css">
<base target="_parent">
<title data-trilium-title>Formatting</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Formatting</h1>
<div class="ck-content">
<h2>Developer-specific formatting</h2>
<h3>Keyboard shortcuts</h3>
<p>This allows marking a portion of text as a shortcut key.</p>
<figure class="image image-style-align-center">
<img style="aspect-ratio:415/42;" src="Formatting_image.png" width="415"
height="42">
</figure>
<p>To apply this style, press the
<img src="2_Formatting_image.png" width="20"
height="14">button in
<img src="1_Formatting_image.png" width="20" height="14">group from the&nbsp;<a class="reference-link" href="Formatting%20toolbar.html">Formatting toolbar</a>.
On the floating toolbar, the buttons appear when selecting a text.</p>
</div>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -20,34 +20,32 @@
into the <a href="../../Basic%20Concepts/Navigation/Tree%20Concepts.html">note tree</a>. into the <a href="../../Basic%20Concepts/Navigation/Tree%20Concepts.html">note tree</a>.
Its reference can be copied into a text note, in order to display it in Its reference can be copied into a text note, in order to display it in
the text itself.</p> the text itself.</p>
<h2>Uploading images</h2>
<h2>Uploading images</h2>
<p>To add an image to the note, simply drag it from file explorer onto the <p>To add an image to the note, simply drag it from file explorer onto the
note editor inside Trilium and the image will be uploaded.</p> note editor inside Trilium and the image will be uploaded.</p>
<p> <p>
<img src="10_Images_image.png" alt=""> <img src="10_Images_image.png" alt="" />
</p> </p>
<p>Alternatively you can click on block toolbar and then on "Insert image":</p> <p>Alternatively you can click on block toolbar and then on "Insert image":</p>
<p> <p>
<img src="8_Images_image.png" alt=""> <img src="8_Images_image.png" alt="" />
</p> </p>
<p>You can also copy and paste an image from web - the image will be (asynchronously) <p>You can also copy and paste an image from web - the image will be (asynchronously)
downloaded and embedded.</p> downloaded and embedded.</p>
<h2>Configuring the images</h2>
<h2>Configuring the images</h2>
<p>Clicking on an image will reveal a popup with multiple options: <p>Clicking on an image will reveal a popup with multiple options:
<br> <br />
<img src="11_Images_image.png" width="285" height="35"> <img src="11_Images_image.png" alt="" />
</p> </p>
<h3>Alignment</h3>
<h3>Alignment</h3>
<p>The first set of options configure the alignment are, in order:</p> <p>The first set of options configure the alignment are, in order:</p>
<figure <table>
class="table" style="width:100%;">
<table class="ck-table-resized">
<colgroup>
<col style="width:5.52%;">
<col style="width:13.93%;">
<col style="width:35.94%;">
<col style="width:44.61%;">
</colgroup>
<thead> <thead>
<tr> <tr>
<th>Icon</th> <th>Icon</th>
@ -59,14 +57,11 @@
<tbody> <tbody>
<tr> <tr>
<td> <td>
<img src="7_Images_image.png" width="16" height="13"> <img src="7_Images_image.png" alt="" />
</td> </td>
<td>Inline</td> <td>Inline</td>
<td> <td>
<figure class="image"> <img src="2_Images_image.png" alt="" />
<img style="aspect-ratio:576/125;" src="2_Images_image.png" width="576"
height="125">
</figure>
</td> </td>
<td>As the name suggests, the name can be put inside a paragraph and moved <td>As the name suggests, the name can be put inside a paragraph and moved
around similarly as if it was a block of text. Use drag &amp; drop or cut-paste around similarly as if it was a block of text. Use drag &amp; drop or cut-paste
@ -74,51 +69,42 @@
</tr> </tr>
<tr> <tr>
<td> <td>
<img src="12_Images_image.png" width="16" height="13"> <img src="12_Images_image.png" alt="" />
</td> </td>
<td>Centered image</td> <td>Centered image</td>
<td> <td>
<figure class="image"> <img src="3_Images_image.png" alt="" />
<img style="aspect-ratio:564/236;" src="3_Images_image.png" width="564"
height="236">
</figure>
</td> </td>
<td>The image will be displayed as a block and centered, not allowing text <td>The image will be displayed as a block and centered, not allowing text
in either the left or right of it.</td> in either the left or right of it.</td>
</tr> </tr>
<tr> <tr>
<td> <td>
<img src="5_Images_image.png" width="33" height="13"> <img src="5_Images_image.png" alt="" />
</td> </td>
<td>Wrap text</td> <td>Wrap text</td>
<td> <td>
<figure class="image"> <img src="9_Images_image.png" alt="" />
<img style="aspect-ratio:577/200;" src="9_Images_image.png" width="577"
height="200">
</figure>
<p>&nbsp;</p>
</td> </td>
<td>The image will be displayed to the left or the right of the text.</td> <td>The image will be displayed to the left or the right of the text.</td>
</tr> </tr>
<tr> <tr>
<td> <td>
<img src="Images_image.png" width="16" height="13"> <img src="Images_image.png" alt="" />
</td> </td>
<td>Block align</td> <td>Block align</td>
<td> <td>
<figure class="image"> <img src="4_Images_image.png" alt="" />
<img style="aspect-ratio:578/240;" src="4_Images_image.png" width="578"
height="240">
</figure>
</td> </td>
<td>Similarly to <i>Centered image</i>, the image will be displayed as a block <td>Similarly to <em>Centered image</em>, the image will be displayed as a
and aligned either to the left or to the right, but not allowing text to block and aligned either to the left or to the right, but not allowing
flow on either of its sides.</td> text to flow on either of its sides.</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</figure>
<h2>Compression</h2> <h2>Compression</h2>
<p>Since Trilium isn't really meant to be primary storage for image data, <p>Since Trilium isn't really meant to be primary storage for image data,
it attempts to compress and resize (with pretty aggressive settings) uploaded it attempts to compress and resize (with pretty aggressive settings) uploaded
images before storing them to the database. You may then notice some quality images before storing them to the database. You may then notice some quality

View File

@ -178,6 +178,8 @@
<li><a href="User%20Guide/Note%20Types/Text/Content%20language%20%26%20Right-to-le.html" <li><a href="User%20Guide/Note%20Types/Text/Content%20language%20%26%20Right-to-le.html"
target="detail">Content language &amp; Right-to-left support</a> target="detail">Content language &amp; Right-to-left support</a>
</li> </li>
<li><a href="User%20Guide/Note%20Types/Text/Formatting.html" target="detail">Formatting</a>
</li>
<li><a href="User%20Guide/Note%20Types/Text/Formatting%20toolbar.html" target="detail">Formatting toolbar</a> <li><a href="User%20Guide/Note%20Types/Text/Formatting%20toolbar.html" target="detail">Formatting toolbar</a>
</li> </li>
<li><a href="User%20Guide/Note%20Types/Text/Images.html" target="detail">Images</a> <li><a href="User%20Guide/Note%20Types/Text/Images.html" target="detail">Images</a>

View File

@ -2,6 +2,11 @@ import { ALLOWED_PROTOCOLS } from "../../../services/link.js";
import options from "../../../services/options.js"; import options from "../../../services/options.js";
import utils from "../../../services/utils.js"; import utils from "../../../services/utils.js";
const TEXT_FORMATTING_GROUP = {
label: "Text formatting",
icon: "text"
};
export function buildConfig() { export function buildConfig() {
return { return {
image: { image: {
@ -116,9 +121,8 @@ function buildClassicToolbar(multilineToolbar: boolean) {
"bold", "bold",
"italic", "italic",
{ {
label: "Text formatting", ...TEXT_FORMATTING_GROUP,
icon: "text", items: ["underline", "strikethrough", "|", "superscript", "subscript", "|", "code", "kbd"]
items: ["underline", "strikethrough", "superscript", "subscript", "code"]
}, },
"|", "|",
"fontColor", "fontColor",
@ -159,11 +163,14 @@ function buildFloatingToolbar() {
"bold", "bold",
"italic", "italic",
"underline", "underline",
"strikethrough", {
"superscript", ...TEXT_FORMATTING_GROUP,
"subscript", items: [ "strikethrough", "|", "superscript", "subscript", "|", "kbd" ]
},
"|",
"fontColor", "fontColor",
"fontBackgroundColor", "fontBackgroundColor",
"|",
"code", "code",
"link", "link",
"removeFormat", "removeFormat",

View File

@ -1840,7 +1840,8 @@ div.bookmark-folder-widget .note-link .bx {
} }
/* Keyboard shortcut */ /* Keyboard shortcut */
.help-dialog .help-cards kbd { .help-dialog .help-cards kbd,
.ck-content kbd {
box-shadow: var(--help-kbd-shortcut-shadow); box-shadow: var(--help-kbd-shortcut-shadow);
margin: 0 4px; margin: 0 4px;
border: none; border: none;