*.cnote
fileEmpty
-> Code
-> Focus
-> Mark
-> Link
Code
: the code will be displayed in code blockFocus
: focus
annotation of codehikeMark
: mark
annotation of codehikeLink
: link
annotation of codehikecommand\status | Empty | Code | Focus | Mark | Link |
---|---|---|---|---|---|
Code Note: Add Highlight | Code all rows selected |
Focus all rows selected |
Mark text selected |
Link text selected |
- |
Code Note: Remove Highlight | - | remove Code |
remove Focus , keep Code |
remove Focus , keep Focus |
remove Mark , keep Focus |
Code Note: Remove All + empty selection | remove all highlights | remove all highlights | remove all highlights | remove all highlights | remove all highlights |
Code Note: Remove All + not empty selection | remove all highlights in selection range | remove all highlights in selection range | remove all highlights in selection range | remove all highlights in selection range | remove all highlights in selection range |
Active
: click node, will scroll to center of view, allowing actions:
detail
node connect to the active
node, which means diving into the active
node or explain more for the active
nodenext
node connect to the active
node, which means the next step follow active step.Selected
: toggle checkbox in right-top conner of node, if node is selected, you can do some actions to the node:
"Code"
, wrapping with group node of type Scrolly
."Text"
: text block, render with MDX
.
"Code"
: code block, render with MDX
and codehike components (CH.Section
+ CH.Code
)
<CH.Section>
MDX text
<CH.Code>
\`\`\`ts filename.ts lineNums=1:3 focus=2
// mark=10:14
function sum(a: number, b: number): number {
return a + b
}
\`\`\`
</CH.Code>
Scrolly
:
MDX text
<CH.Scrolly>
step1 text
\`\`\`ts filename.ts lineNums=1:3 focus=2
// mark=10:14
function sum1(a: number, b: number): number {
return a + b
}
\`\`\`
---
step2 text
\`\`\`ts filename.ts lineNums=1:3 focus=2
// mark=10:14
function sum2(a: number, b: number): number {
return a + b
}
\`\`\`
</CH.Scrolly>
active node \ new node | detail Code | next Code | detail Text | next Text |
---|---|---|---|---|
Code not in group | ||||
Code in Scrolly of renderAsGroup mode |
||||
Code in Scrolly of !renderAsGroup mode |
||||
Text not in group | ||||
Text in Scrolly of renderAsGroup mode |
||||
Text in Scrolly of !renderAsGroup mode |