forked from kofal.net/zmk
docs: Add syntax highlighting to more code blocks
Added language tags to more code blocks in the documentation to enable syntax highlighting.
This commit is contained in:
committed by
Cem Aksoylar
parent
4a339093ce
commit
65667b863a
@@ -32,7 +32,7 @@ to the host capitalized until a non-alpha, non-"continue list" keycode is sent.
|
||||
|
||||
[petejohanson], taking heavy inspiration on the initial work from [okke-formsma], added [macro support](/docs/behaviors/macros) in [#1168](https://github.com/zmkfirmware/zmk/pull/1166). Several [common patterns](/docs/behaviors/macros#common-patterns) are documented, but one example, changing the underglow color as you activate/deactivate a layer, looks like:
|
||||
|
||||
```
|
||||
```dts
|
||||
ZMK_MACRO(layer_color_macro,
|
||||
wait-ms = <0>;
|
||||
tap-ms = <0>;
|
||||
@@ -50,7 +50,7 @@ ZMK_MACRO(layer_color_macro,
|
||||
[kurtis-lew] worked diligently to add the [tap-dance behavior](/docs/behaviors/tap-dance) in [#1139](https://github.com/zmkfirmware/zmk/pull/1139), allowing different behaviors to be invoked based on the number of times
|
||||
a user taps a single key in their keymap, e.g.
|
||||
|
||||
```
|
||||
```dts
|
||||
/ {
|
||||
behaviors {
|
||||
td0: tap_dance_0 {
|
||||
@@ -80,7 +80,7 @@ a user taps a single key in their keymap, e.g.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
```dts
|
||||
/ {
|
||||
conditional_layers {
|
||||
compatible = "zmk,conditional-layers";
|
||||
@@ -164,7 +164,7 @@ using "high voltage mode" with that SoC.
|
||||
|
||||
[petejohanson]'s work on the HID foundation also included adding support for full NKRO HID in [#726](https://github.com/zmkfirmware/zmk/pull/726) that can be enabled by adding the following to your `.conf` file for your config:
|
||||
|
||||
```
|
||||
```ini
|
||||
CONFIG_ZMK_HID_REPORT_TYPE_NKRO=y
|
||||
```
|
||||
|
||||
@@ -176,7 +176,7 @@ It's been live for a while, but [nicell] added an amazing [power profiler](/powe
|
||||
|
||||
[malinges](https://github.com/malinges) added support for configuring min/max underglow brightness in [#944](https://github.com/zmkfirmware/zmk/pull/944) by setting the values in your `.conf` file as percentages of full:
|
||||
|
||||
```
|
||||
```ini
|
||||
CONFIG_ZMK_RGB_UNDERGLOW_BRT_MIN=20
|
||||
CONFIG_ZMK_RGB_UNDERGLOW_BRT_MAX=80
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user