WriterSide 插件
引用代码片段
在 .cfg 文件中添加
<snippets dir="codes" />
来指定代码片段所在的文件夹
{src="a.js" include-lines="1,3,5,6-9"}
{src="a.js" include-symbol="sayHello"}
快捷键
Press <shortcut key="$Copy"/> to copy.
1. 添加 keymap.xml
2. buildprofiles.xml 中添加
<shortcuts>
<src>keymap.xml</src>
<layout name="Windows" display-name="Windows"/>
<layout name="macOS" display-name="macOS"/>
</shortcuts>
3. 在预览界面切换 Windows 和 macOS ,就可以显示对应的快捷键方案了。
<procedure title="Add something" id="procedure-id">
<p>Before adding something, create it.</p>
<step>Do this.</step>
<step>Do that.</step>
<p>Congratulation! You've added something.</p>
</procedure>
Default chapter title
<title instance="foo">Chapter title for Foo</title>
Some text.
<show-structure for="chapter,procedure" depth="2"/>
Lorem ipsum dolor sit amet, consectetur
adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna
aliqua.
{id="unique-id"}
Ut enim ad minim veniam, quis nostrud
exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
<p>
If the Welcome screen opens, click
<control>
Check out from Version Control
</control>,
then select <control>Git</control>.
</p>
<p>
A Writerside
<emphasis>project</emphasis>
consists of a set of documentation topics
and configuration files that define the
project and preview settings, glossaries,
and the documentation structure.
</p>
Go to <ui-path>Settings/Preferences | Tools | Writerside</ui-path>.
The list of categories is stored
in the <path>c.list</path> file
within the module directory.
The TOC is stored in the product's
<path>.tree</path> file.
Press <shortcut>Ctrl+C</shortcut> to copy.
Press <shortcut key="$Copy"/> to copy.
format
> style=[bold, italic, strikethrough, underline, superscript, subscript]
<format style="bold" color="RosyBrown">Hello, world!</format>
<format style="subscript" color="Red">Hello, world!</format>
## Chapter's title {collapsible="true"}
Some content.
class Person(val name: String) {
val children: MutableList<Person> = mutableListOf()
constructor(name: String, parent: Person) : this(name) {
parent.children.add(this)
}
}
{collapsible="true" collapsed-title="代码片段之我爱学习"}
{collapsible="true"}
Expanded by default
{collapsible="true" default-state="expanded"}
: This is the definition of the first term.
Collapsed by default
{collapsible="true" default-state="collapsed"}
: This is the definition of the second term.