Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
docs: Document the new code span shortcut.
Kislay Verma11d873699f4f
diff --git a/starlight_help/src/content/docs/code-blocks.mdx b/starlight_help/src/content/docs/code-blocks.mdxindex 91ea8151e49..41502bbb4f2 100644--- a/starlight_help/src/content/docs/code-blocks.mdx+++ b/starlight_help/src/content/docs/code-blocks.mdx@@ -5,6 +5,7 @@ title: Code blocksimport {TabItem, Tabs} from "@astrojs/starlight/components";import FlattenedSteps from "../../components/FlattenedSteps.astro";+import KeyboardTip from "../../components/KeyboardTip.astro";import NavigationSteps from "../../components/NavigationSteps.astro";import ZulipTip from "../../components/ZulipTip.astro";import AdminOnly from "../include/_AdminOnly.mdx";@@ -44,6 +45,11 @@ formatting:You can also use the **Code** (<CodeIcon />)icon to remove existing code formatting from the selected text.</ZulipTip>++ <KeyboardTip>+ You can also use <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>C</kbd>+ to insert code formatting.+ </KeyboardTip></TabItem><TabItem label="Via Markdown">diff --git a/starlight_help/src/content/docs/format-your-message-using-markdown.mdx b/starlight_help/src/content/docs/format-your-message-using-markdown.mdxindex 4fa3dedb412..0f5205fea1f 100644--- a/starlight_help/src/content/docs/format-your-message-using-markdown.mdx+++ b/starlight_help/src/content/docs/format-your-message-using-markdown.mdx@@ -5,6 +5,7 @@ title: Message formattingimport {TabItem, Tabs} from "@astrojs/starlight/components";import FlattenedSteps from "../../components/FlattenedSteps.astro";+import KeyboardTip from "../../components/KeyboardTip.astro";import NavigationSteps from "../../components/NavigationSteps.astro";import ZulipTip from "../../components/ZulipTip.astro";import BulletedListsExamples from "../include/_BulletedListsExamples.mdx";@@ -149,6 +150,11 @@ below.[Learn more](/help/code-blocks).</ZulipTip>+<KeyboardTip>+ You can also use <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>C</kbd>+ to insert code formatting.+</KeyboardTip>+## LaTeX<LatexIntro />diff --git a/starlight_help/src/content/docs/keyboard-shortcuts.mdx b/starlight_help/src/content/docs/keyboard-shortcuts.mdxindex 370ae98c7e2..8a4e782f731 100644--- a/starlight_help/src/content/docs/keyboard-shortcuts.mdx+++ b/starlight_help/src/content/docs/keyboard-shortcuts.mdx@@ -116,16 +116,27 @@ reference in the Zulip app to add more to your repertoire as needed.* **Send message**: <kbd>Tab</kbd> then <kbd>Enter</kbd>, or either<kbd>Enter</kbd> or <kbd>Ctrl</kbd> + <kbd>Enter</kbd> based on[your settings][toggle-enter-to-send]+* **Insert new line**: <kbd>Shift</kbd> + <kbd>Enter</kbd>, or either<kbd>Enter</kbd> or <kbd>Ctrl</kbd> + <kbd>Enter</kbd> based on[your settings][toggle-enter-to-send]+* **Insert italic text**: `*italic*` or <kbd>Ctrl</kbd> + <kbd>I</kbd>+* **Insert bold text**: `**bold**` or <kbd>Ctrl</kbd> + <kbd>B</kbd>+* **Insert link**: `[Zulip website](https://zulip.org)` or <kbd>Ctrl</kbd> +<kbd>Shift</kbd> + <kbd>L</kbd>+* **Insert or create a [saved snippet](/help/saved-snippets)**:<kbd>Ctrl</kbd> + <kbd>'</kbd>++* **Insert code formatting**: `` `code` `` or ` ```code``` ` or <kbd>Ctrl</kbd> ++ <kbd>Shift</kbd> + <kbd>C</kbd>.+ See [contextually appropriate code formatting](/help/code-blocks#insert-code-formatting).+* **Toggle preview mode**: <kbd>Alt</kbd> + <kbd>P</kbd>+* **Cancel compose and save draft**: <kbd>Esc</kbd> or<kbd data-mac-key="Ctrl">Ctrl</kbd> + <kbd>\[</kbd> — Close the compose boxand save the unsent message as a draft.