# \[Solved\] Rules trying to learn

**URL:** <https://community.openhab.org/t/solved-rules-trying-to-learn/94254>\
**Category:** Off-Topic\
**Created:** [March 8, 2020, 2:32pm UTC](https://community.openhab.org/t/solved-rules-trying-to-learn/94254 "2020-03-08T14:32:14Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Celaeno1](https://community.openhab.org/user_avatar/community.openhab.org/celaeno1/32/55724_2.png) [@Celaeno1](https://community.openhab.org/u/Celaeno1)\
**Post date:** [March 8, 2020, 3:05pm UTC](https://community.openhab.org/t/solved-rules-trying-to-learn/94254/12 "2020-03-08T15:05:05Z")

</div>

@BDE

Could you please use “code fences” for better reading?

> [@How to use code fences](https://community.openhab.org/t/how-to-use-code-fences/38383):
>
> We all have to type this content over and over and over. Here is a posting we can all point to when the topic comes up. Why use code fences? Because rules, sitemap, logs, and configs are all but unreadable when code fences are not used. When to use code fences? Whenever one is posting any sort of code, config, log, and any text where line wrapping, indentation, and using an equal spaced font makes the text more legible. How to use code fences? Use 3 backticks (```)... Or use \<code\>... …

Thanks a lot.

e.g. your last post would look like:

```
Switch marantz_power "Receiver" {channel="denonmarantz:avr:0006782c375f:general#power"}
Dimmer marantz_volume "Volume" {channel="denonmarantz:avr:0006782c375f:mainZone#volume"}
Number marantz_volumeDB "Volume [%.1f dB]" {channel="denonmarantz:avr:0006782c375f:mainZone#volumeDBe"}
Switch marantz_mute "Mute" {channel="denonmarantz:avr:0006782c375f:mainZone#mute"}
Switch marantz_z2power "Zone 2" {channel="denonmarantz:avr:006782c375f:zone2#power"}
String marantz_input "Input [%s]" {channel="denonmarantz:avr:0006782c375f:mainZone#input" }
String marantz_surround "Surround: [%s]" {channel="denonmarantz:avr:0006782c375f:general#surroundProgram"}
String marantz_command {channel="denonmarantz:avr:0006782c375f:general#command"}

```

---

_[View the full topic](https://community.openhab.org/t/solved-rules-trying-to-learn/94254)._
