Samples
Provide samples for your users
If you are creating documentation for an app with an API or a framework, you may want to provide some code samples for your users as a starting point.
Check out the Ultradox Samples as an example.
Sample code
You can include source code into your document by creating a simple table with exactly one row and one column.
Set the background color to #f3f3f3
to add syntax highlighting to the code in your table.
// Javascript source code
var a = {
test : 500
}
You can add multiple languages to your source code by starting the section with the language
tag:
var a = {
test : 500
}
int a = 500;
<h1>Headline</h1>
<p>This is a paragraph</p>
Questions and Feedback
If you have any comments on this page, feel free to add suggestions right to the Google document that we are using to generate this page.
Last Updated: 18.01.17