StringBuilder signature = new StringBuilder();
signature.append("<div id=\"")
.append(HtmlEscape.escape(name))
- .append("\" class=\"code-doc-box\"><div class=\"code\">");
+ .append("\" class=\"code-doc-box\"><div class=\"code value\">");
char firstChar = name.charAt(0);
if(!Character.isAlphabetic(firstChar) && firstChar != '_')
name = "(" + name + ")";
TypeUnparsingContext tuc = new TypeUnparsingContext();
StringBuilder signature = new StringBuilder();
- signature.append("<div class=\"code-doc-box\"><div class=\"code\">");
+ signature.append("<div id=\"class-")
+ .append(HtmlEscape.escape(name))
+ .append("\" class=\"code-doc-box\"><div class=\"code class\">");
signature.append("class ");
if(typeClass.context.length > 0) {
signature.append('(');
TypeUnparsingContext tuc = new TypeUnparsingContext();
StringBuilder signature = new StringBuilder();
- signature.append("<div class=\"code-doc-box\"><div class=\"code\">");
+ signature.append("<div id=\"data-")
+ .append(HtmlEscape.escape(name))
+ .append("\" class=\"code-doc-box\"><div class=\"code data\">");
signature.append("data ");
signature.append(typeDescriptor.name.name);
if(typeDescriptor instanceof TypeConstructor) {
.code-doc-box>.code {
font-size: 12px;
font-family: Consolas, "Liberation Mono", Courier, monospace;
- background-color: #f0f0ff;
white-space: pre;
padding: 10px 15px;
border-bottom: 1px solid;
display: block;
}
-.code-doc-box>.doc {display: block;
+.code-doc-box>.value {
+ background-color: #f0f0ff;
+}
+
+.code-doc-box>.data {
+ background-color: #f0fff0;
+}
+
+.code-doc-box>.class {
+ background-color: #fff0f0;
+}
+
+.code-doc-box>.doc {
padding: 0px 15px ;
display: block;
}