ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Environment
  • Overview
  • How to?
  • Enabling Markdown in a control
  • Markdown edit control
  • Convert Markdown
  • Markdown syntax
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
Markdown is a lightweight markup language that allows you to apply formatting to text. Because of its simplicity and practicality, Markdown is easy to read, learn and remember.
All WINDEV and WINDEV Mobile controls support Markdown. Simply enable the option and enter text in Markdown format.
WEBDEV - Server code In WEBDEV, only the MarkdownToxxx functions are supported.
How to?
WINDEVWINDEV Mobile

Enabling Markdown in a control

To enable Markdown in a control, follow these steps:
  1. Open the control description window.
  2. Check the "Support Markdown" option in the "UI" tab.
This option enables Markdown on the following elements:
  • caption,
  • tooltip,
  • tokens associated with an Edit control.
    Note: This property does not apply to the content of the Edit control.
The Markdown property enables or disables Markdown in a control.
Note In the report editor, it is also possible to manage Markdown in Static Text control fields. In the code, simply use the Markdown property.
WINDEVWINDEV Mobile

Markdown edit control

Markdown requires a specific option in Edit controls. To display Markdown content, Edit controls must be of type "Markdown (read-only)".
Markdown content assigned to the control will be rendered both in the editor and at runtime.
This mode offers multiple advantages, compared to a Static Text control:
  • if the formatted content is too large, a scrollbar will automatically appear, allowing the user to scroll through the content.
  • it is possible to select a part of the displayed text (to copy it, for example).
To achieve this programmatically, you can use the DisplayAsMarkdown property.

Convert Markdown

WLanguage provides several standard functions to convert Markdown content to other formats:
MarkdownToDOCXConverts a Markdown string to a DOCX file.
MarkdownToHTMLConverts a Markwdown string to an HTML buffer (encoded in UTF-8).
MarkdownToPDFConverts a Markdown string (or buffer) to a buffer containing a PDF document.
MarkdownToTextConverts a Markdown string to plain text (without tags).
When editing documents containing Markdown text (meeting minutes, intervention reports, etc.), these functions allow you to:
  • display the content in a website (HTML),
  • send the document by email (PDF),
  • etc.
Markdown syntax
Below is a list of Markdown syntax elements:
Headings
# Heading level 1
## Heading level 2
### Heading level 3
#### Heading level 4 
##### Heading level 5 
###### Heading level 6

Heading level 1

Heading level 2

Heading level 3

Heading level 4

Heading level 5
Heading level 6
Bold/Italic
*Italicized* text

**Bold** text

***Bold and italic*** text
Italicized text

Bold text

Bold and italic text
Strikethrough
~~Strikethrough~~ text
Strikethrough text
Line break
**Bold text** CR CR
*Italicized text*
CR represents a carriage return
Bold text

Italicized text
**Bold text** SPC SPC CR
*Italicized text*
SPC represents the space character
CR represents a carriage return
Bold text
Italicized text
Change paragraph
**Bold text**
Empty line
*Italicized text*
Bold text

Italicized text
Blockquote
> Blockquote

> Blockquote
>
> 2nd line of the blockquote

> Blockquote level 1
> 
>> Blockquote level 2
> > 
>>> Blockquote level 3
Blockquote
Blockquote
2nd line of the blockquote
Blockquote level 1
Blockquote level 2
Blockquote level 3
Lists
* List 1
* List 2 
* List 3   
    * Sublist 1
    * Sublist 2

1. List 1
2. List 2 
3. List 3   
    1. Sublist 1
    2. Sublist 2
  • List 1
  • List 2
  • List 3
    • Sublist 1
    • Sublist 2
  1. List 1
  2. List 2
  3. List 3
    1. Sublist 1
    2. Sublist 2
Code
```
// Calculation
n = Factorial(6)
```

// Calculation n = Factorial(6)
Separator
a
* * *
b
***
c
- - -
d
---
e
a
b
c
d
e
Links
[WINDEV](https://windev.com/windev/)

[WEBDEV](https://windev.com/webdev "WEBDEV!")

[link]: https://pcsoft.fr/windevmobile
[WINDEV Mobile][link]
WINDEV
Images
NB: URLs managed synchronously
PC SOFT logo:
![alt](logo.gif)

PC SOFT logo with tooltip:
![alt](logo.gif "title")
Special characters
\\
\#
\_
\-
\`
\!
\( \)
\{ \}
\[ \]
\
#
_
-
'
!
( )
{ }
[ ]
Text color
This <span style="color: #26B260">
text is green</span>!
This text is green!
Related Examples:
WD Markdown Complete examples (WINDEV): WD Markdown
[ + ] This example is an advanced Markdown text editor
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help