ruddfawcett / Notepad

[iOS] A fully themeable markdown editor with live syntax highlighting.
http://rudd.fyi/notepad
MIT License
881 stars 106 forks source link

Different font sizes? #14

Closed ghost closed 7 years ago

ghost commented 7 years ago

Would it be possible to adjust the size of different tokens?

For example, a level 1 header # Heading could be a larger font size than standard text.

Something like CodeMirror's implementation: http://codemirror.net/demo/variableheight.html

ruddfawcett commented 7 years ago

Yes! What you're looking for is to define "size" in a "font" for an element in your stylesheet.

"font:" {
    "size": 12
}

You can either edit an existing stylesheet, or create a new one to do this!

ghost commented 7 years ago

Legendary 👍 thanks for that!