Files
RedBear-OS/local/recipes/kde/kf6-syntaxhighlighting/source/autotests/html/highlight.proto.dark.html
T

34 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>highlight.proto</title>
<meta name="generator" content="KF5::SyntaxHighlighting - Definition (Protobuf) - Theme (Breeze Dark)"/>
</head><body style="background-color:#232629;color:#cfcfc2"><pre>
syntax = <span style="color:#f44f4f">"proto2"</span>;
<span style="font-weight:bold">package</span> example;
<span style="font-weight:bold">message</span> Object {
<span style="font-weight:bold">required</span> <span style="color:#2980b9">string</span> name = <span style="color:#f67400">1</span>;
<span style="font-weight:bold">required</span> <span style="color:#2980b9">int32</span> identifier = <span style="color:#f67400">2</span>;
<span style="font-weight:bold">optional</span> <span style="color:#2980b9">string</span> address = <span style="color:#f67400">3</span>;
<span style="font-weight:bold">enum</span> ObjectType {
LOCAL = <span style="color:#f67400">0</span>;
REMOTE = <span style="color:#f67400">1</span>;
NEITHER = <span style="color:#f67400">2</span>;
}
<span style="font-weight:bold">message</span> ObjectData {
<span style="font-weight:bold">required</span> <span style="color:#2980b9">string</span> number = <span style="color:#f67400">1</span>;
<span style="font-weight:bold">optional</span> ObjectType type = <span style="color:#f67400">2</span> [<span style="font-weight:bold">default</span> = NEITHER];
}
<span style="font-weight:bold">repeated</span> ObjectData dataList = <span style="color:#f67400">4</span>;
}
<span style="font-weight:bold">message</span> ObjectList {
<span style="font-weight:bold">repeated</span> Object object = <span style="color:#f67400">1</span>;
}
</pre></body></html>