Comments: This is an introduction of the Markdown formatting syntax involved in CoIDE component document. CoIDE Markdown editor supports all legal Markdown characters.
Note: If you are not familiar with the Markdown formatting Syntax, the materials below will be of some help.
Doxygen will show the first first level header as the file name when parsing. To distinguish a file name from a header, we recommend you to write your file name like this.
Your File Name
=========
Headers use 1-5 hash characters at the start of the line, corresponding to header levels 1-5.
# This is an H1
## This is an H2
### This is an H3
#### This is an H4
##### This is an H5
Note: Headers above level 5 are supported but not recommended.
To emphasize a text, wrap it with double asterisks.
**This is bold text**
*This is italic text*
This is bold text
This is italic text
[NAME](URL "TITLE")
NAME is the link text, URL is where you want the link to point, and TITLE is a prompt text for the link.
Note: TITLE is an optional item. When a cursor is stayed on the link, the TITLE text, if any, will prompt.
[CooCox](http://www.coocox.org/images/logo.jpg )
[CooCox](http://www.coocox.org/images/logo.jpg "CooCox")
With the plain syntax of Doxygen and Markdown, you can easily insert images to your document. Below are detailed steps of how to insert an image and some operation suggestions.
There are two styles of images: inline and reference.
Reference-style images are located on web server, while inline-style images are located locally or quoted by relative paths. They use the same syntax as below:

Among which:
Here comes an example of how to insert an image.
Insert a reference-style image with an URL: http://www.coocox.org/images/logo.jpg
It looks like this:

and will produce:
Use the image name as the relative path directly.
Assume that there is already an image named CooCox_CooCox_Logo_0000 in the Component Doc directory, you can use the local image directly like this:

When inserting inline-style images, Doxygen will first copy the images from different sub-directories to the HTML output directory, and the HTML will quote one level relative paths. When there are too many image resources, image name conflict may happen. To avoid such kind of problem, we set a rule as below to name the images:
Author+Component name+Functionality+Index number
An index number is a decimal double figure specified by users, ranging from 0 to 99.
Markdown supports ordered (numbered) and unordered (bulleted) lists.
Ordered lists use numbers followed by periods and list items with a space in between:
[Number][.][Space][List item]
Unordered lists use asterisks followed by a space and then list items: [*][Space][List item]
Note: A blank line should be used to separate lists in different paragraphs
An ordered list:
1. Item A
2. Item B
3. Item C
A disordered list:
* Item A
* Item B
* Item C
A mix with ordered and disordered list:
1. Item A
* Item 1A
* Item 1B
* Item 1C
2. Item B
* Item 2A
* Item 2B
* Item 2C
3. Item C
* Item 3A
* Item 3B
* Item 3C
An ordered list:
A disordered list:
A mix with ordered and disordered list:
Note: In a nested list, each subsequent item should be indented by 4 spaces
Put the > followed by a space before the first line of a paragraph.
Note: Blockquotes can be nested (i.e. a blockquote-in-a-blockquote), and can contain other Markdown elements, including headers, lists, and code blocks
> Email-style angle brackets
> are used for blockquotes.
> > And, they can be nested.
> #### Headers in blockquotes
>
> * You can quote a list.
> * Etc.
Email-style angle brackets
are used for blockquotes.And, they can be nested.
Headers in blockquotes
- You can quote a list.
- Etc.
If there are lots of comments for the code, you can consider putting them in a separate file, and quote the file in Readme.md file.
~~~~~~~~~~{.c}
// Hello, this is a function
printf("Hello world");
~~~~~~~~~~
is used to insert the code printf ("Hello world") written in C and highlight it.
printf("Hello world");
Note: It's used to display some mark or code in a text format
Wrap the mark or code with ', and wrap them with spaces.
Example: '<pre>' is a plain word
Example: <pre>
is a plain word
Use three or more underscores, and wrap them with blank lines.
Press ENTER
---
Press ENTER
Markdown syntax forces line feed via adding over two spaces at the end of line. But Doxygen will remove the spaces in preprocessing stage, and turn Markdown tags to internal tags, and then complie them together with source code and generate a document . Therefore, the standard Markdown way won't take effect, we can only force the line feed by the following inelegent ways:
<br>
\n
Note: You can force line feed at any place you want, including within a table.
Markdown supports inline HTML, which allows you to create documents in any style you want. Here is one thing you need to pay special attention to:
The only restrictions Markdown syntax has for inserting HTML are:
Block-level HTML elements — e.g.
<div>
,<table>
,<pre>
,<p>
, etc. — must be separated from surrounding content by blank lines, and the start and end tags of the block should not be indented with tabs or spaces.
Good news is that there is no such restriction as above in Doxygen. You can even insert Markdown formatted content in HTML blocks.
Doxygen won't process corresponding block contents in below conditions:
<pre>
\verbatim
Note:Although Doxygen won't process content in code block
, it will remove the indented spaces and make the code look disordered. If you need to insert preformatted code in comment or Markdown, it's best to use the <pre>
tag or directly insert a code block.
You can insert a preformatted text to Markdown syntax by 4 spaces indentation.