9 Commits

Author SHA1 Message Date
John Sundell
c73767a0bc HTMLOutputFormat: Escape < and > characters
This patch makes `HTMLOutputFormat` correctly escape all < and > characters
that occur in source code. Otherwise, a web browser rendering the resulting
HTML will interpret those characters as tags.
2018-08-27 00:14:48 +02:00
John Sundell
a68e461eb4 Replace custom Color struct with typealiases
Now that the decision not to support colors on Linux
has been made, we can replace the custom `Color` struct
with simple typealiases for `NSColor` and `UIColor`.

The same can’t be done for font, since we want to enable
loading of a font from a path, for SPM packages.
2018-08-26 22:49:39 +02:00
John Sundell
1e532a6c4c Theme: Streamline cross-platform implementation
Now that we’re making Splash support iOS as well as
Mac + Linux, we need to create some nice abstractions
to make sure that we can share as much code as possible
between all platforms.

- Define Font.Loaded and Color.Renderable as platform-
specific typealiases for system fonts and colors.
- Don’t compile in non-Linux compatible code when building
for Linux.
- Make Font and Color handle all conversion themselves, so
that AttributedStringOutputFormat can be kept more clean.
2018-08-26 00:54:44 +02:00
Mihael Cholakov
dfd146dadb Removed whitespace 2018-08-25 23:37:24 +03:00
Mihael Cholakov
3952b91e3f Removed whitespace 2018-08-25 23:36:19 +03:00
Mihael Cholakov
305d09e8ac Whitespace removal 2018-08-25 22:11:20 +03:00
Mihael Cholakov
def9e10f1a Shortened loadFont 2018-08-25 22:06:05 +03:00
Mihael Cholakov
5702cea843 Implements iOS support for AttributedStringOutputFormat 2018-08-25 21:49:30 +03:00
John Sundell
8645db8de0 Initial commit 2018-08-24 18:42:07 +02:00