diff --git a/content/themes.md b/content/themes.md index 55f94f69e555331a467b3a5c7c78571a42f27ea5..069873a851c5a858643e92481e7eebc2aa55ce80 100644 --- a/content/themes.md +++ b/content/themes.md @@ -6,7 +6,7 @@ date: 2019-08-24T12:12:12+00:00 -

Kate's highlighting is powered by the [KSyntaxHighlighting](https://api.kde.org/frameworks/syntax-highlighting/html/) framework that contains 13 bundled color themes. +

Kate's highlighting is powered by the [KSyntaxHighlighting](https://api.kde.org/frameworks/syntax-highlighting/html/) framework that contains 14 bundled color themes. Below you can find a list of all bundled themes together with an example rendering.

ayu Dark

@@ -59,6 +59,11 @@ Below you can find a list of all bundled themes together with an example renderi {{% include "/static/themes/html/printing-snippet.html" %}} {{< /rawhtml >}} +

Radical

+{{< rawhtml >}} +{{% include "/static/themes/html/radical-snippet.html" %}} +{{< /rawhtml >}} +

Solarized Dark

{{< rawhtml >}} {{% include "/static/themes/html/solarized-dark-snippet.html" %}} diff --git a/static/themes/html/radical-snippet.html b/static/themes/html/radical-snippet.html new file mode 100644 index 0000000000000000000000000000000000000000..85f6eed0d1addf15a134aea3617d6f93b318b1c1 --- /dev/null +++ b/static/themes/html/radical-snippet.html @@ -0,0 +1,29 @@ +
+/**
+ * SPDX-FileCopyrightText: 2020 Christoph Cullmann <cullmann@kde.org>
+ * SPDX-License-Identifier: MIT
+ */
+
+// BEGIN
+#include <string>
+#include <QString>
+// END
+
+/**
+ * TODO: improve documentation
+ * @param magicArgument some magic argument
+ * @return magic return value
+ */
+int main(uint64_t magicArgument)
+{
+    if (magicArgument > 1) {
+        const std::string string = "source file: \"" __FILE__ "\"";
+        const QString qString(QStringLiteral("test"));
+        return qrand();
+    }
+
+    /* BUG: bogus integer constant inside next line */
+    const double g = 1.1e12 * 0b01'01'01'01 - 43a + 0x11234 * 0234ULL - 'c' * 42;
+    return g > 1.3f;
+}
+
diff --git a/static/themes/html/radical.html b/static/themes/html/radical.html new file mode 100644 index 0000000000000000000000000000000000000000..8f8167789b0c2aebb22dc83fe8763f333d462c77 --- /dev/null +++ b/static/themes/html/radical.html @@ -0,0 +1,34 @@ + + + +showcase.cpp + +
+/**
+ * SPDX-FileCopyrightText: 2020 Christoph Cullmann <cullmann@kde.org>
+ * SPDX-License-Identifier: MIT
+ */
+
+// BEGIN
+#include <string>
+#include <QString>
+// END
+
+/**
+ * TODO: improve documentation
+ * @param magicArgument some magic argument
+ * @return magic return value
+ */
+int main(uint64_t magicArgument)
+{
+    if (magicArgument > 1) {
+        const std::string string = "source file: \"" __FILE__ "\"";
+        const QString qString(QStringLiteral("test"));
+        return qrand();
+    }
+
+    /* BUG: bogus integer constant inside next line */
+    const double g = 1.1e12 * 0b01'01'01'01 - 43a + 0x11234 * 0234ULL - 'c' * 42;
+    return g > 1.3f;
+}
+