# Unformatted Code Detector

**URL:** <https://meta.discourse.org/t/unformatted-code-detector/112773>\
**Category:** Theme component\
**Tags:** official, unformatted-code-detector\
**Created:** [March 28, 2019, 4:21am UTC](https://meta.discourse.org/t/unformatted-code-detector/112773 "2019-03-28T04:21:55Z")\
**Posts on this page:** 1\
**Showing post:** 52

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [October 28, 2021, 9:48pm UTC](https://meta.discourse.org/t/unformatted-code-detector/112773/52 "2021-10-28T21:48:23Z")

</div>

The original vision I had was for a component where you could specify how much “energy” a given character (or complete string, such as `C:\`) adds, especially as that character (or string) begins repeating in the same nearby area over and over, multiplying the code energy score.

```plaintext
Sensors:
  System Temperatures: cpu: 78.0 C mobo: 36.0 C gpu: nouveau temp: 56.0 C 
  Fan Speeds (RPM): cpu: 0 fan-1: 3139 fan-3: 0 fan-5: 0 
  Power: 12v: N/A 5v: 2.90 3.3v: N/A vbat: 3.34 

```

This is rather colon heavy. So ideally if you wanted to tweak this, you’d set an energy level for the colon, and a repetition bonus.

I guess that is not possible at the moment, it is unfortunate all the rules are hard-coded.

---

_[View the full topic](https://meta.discourse.org/t/unformatted-code-detector/112773)._
