Skip to content

Instantly share code, notes, and snippets.

@chilversc
Created December 31, 2009 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chilversc/266571 to your computer and use it in GitHub Desktop.
Save chilversc/266571 to your computer and use it in GitHub Desktop.
Style for editing monodoc xml using tools such as oxygen
AssemblyInfo, TypeParameters, Base, MemberType, Parameters, ReturnValue
{
display: none;
}
TypeSignature {
display: block;
padding: 1em;
margin: 1em;
content: attr(Value);
background-color: #ccf;
border: 1px solid black;
}
Interfaces {
display: block;
padding: 1em;
margin: 1em;
}
Interface {
display: list-item;
}
InterfaceName {
display: inline;
}
Docs {
display: block;
}
Member {
display: block;
padding: 1em;
margin: 1em;
border: 1px solid black;
}
MemberSignature {
display: block;
padding: 1em;
background-color: #ccf;
border: 1px solid black;
content: attr(Value);
}
summary:before {
display: block;
font-weight: bold;
content: "Summary";
}
remarks:before {
display: block;
font-weight: bold;
content: "Remarks";
}
typeparam:before, param:before, returns:before, exception:before, value:before {
display: block;
font-weight: bold;
}
typeparam:before {
content: "Type Parameter " attr(name);
}
param:before {
content: "Param " attr(name);
}
returns:before {
content: "Returns";
}
value:before {
content: "Value";
}
exception:before {
content: "Exception " attr(cref);
}
typeparam, param, returns, exception, value, summary, remarks {
display: block;
margin-left: 2em;
margin-bottom: 1em;
}
see[cref] {
color: blue;
text-decoration: underline;
content: attr(cref);
}
see[langword] {
font-family: monospace;
font-style: italic;
content: attr(langword);
}
paramref, typeref {
font-style: italic;
content: attr(name);
}
code, c {
font-family: monospace;
}
c {
display: inline;
}
code {
display: block;
white-space: pre;
}
code[lang]:before {
display: block;
content: attr(lang);
border-bottom: 1px solid black;
}
para {
display: block;
margin-bottom: 1em;
}
example:before {
font-weight: bold;
content: "Example";
}
example {
margin: 1ex;
border: 1px solid black;
background-color: #eee;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment