Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editing shortcut keys; syntax highlight support #124

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Wiki/code-notes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Code-notes
# Code-notes
Trilium supports creating "code" notes, i.e. notes which contain some sort of formal code - be it programming language (C++, JavaScript), structured data (JSON, XML) or other types of codes (CSS etc.).

This can be useful for a few things:
Expand All @@ -18,6 +18,6 @@ Trilium supports syntax highlighting for many languages, but by default displays
Code blocks
-----------

An alternative to the code note is a "code block" - feature of a text note which can add short snippets of code to the text editor. The disadvantage is that code blocks don't support syntax highlighting.
An alternative to the code note is a "code block" - feature of a text note which can add short snippets of code to the text editor. Trilium Next v90.12 and newer will show syntax highlighting.

![](images/code-block.png)
5 changes: 4 additions & 1 deletion Wiki/keyboard-shortcuts.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Keyboard-shortcuts
# Keyboard-shortcuts
This is supposed to be a complete list of keyboard shortcuts. Note that some of these may work only in certain contexts (e.g. in tree pane or note editor).

It is also possible to configure most keyboard shortcuts in Options -> Keyboard shortcuts. Using `global:` prefix, you can assign a shortcut which will work even without Trilium being in focus (requires app restart to take effect).
Expand Down Expand Up @@ -56,6 +56,9 @@ Editing notes

Trilium uses CKEditor 5 for the [text notes](text-notes.md) and CodeMirror 5 for [code notes](code-notes.md). Check the documentation of these projects to see all their built-in keyboard shortcuts.

* `ALT-F10` - bring up inline formatting toolbar (arrow keys `<-`,`->` to navigate, `ENTER` to apply)
* `ALT-F10` - again to bring up block formatting toolbar

* `ENTER` in tree pane switches from tree pane into note title. Enter from note title switches focus to text editor. `CTRL+.` switches back from editor to tree pane.
* `CTRL+K` - create / edit [external link](links.md)
* `CTRL+L` - create [internal (note) link](links.md)
Expand Down