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
  • Edit control with Markdown text
  • Convert Markdown
  • Markdown syntax
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 MarkdownVersxxx 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,
  • control Tooltip,
  • tokens associated with an Edit control.
    Remark: This property does not apply to the content of the Edit control.
New in version 2024
The Markdown property enables or disables Markdown in a control.
Remark: Markdown is also supported in Static controls in the report editor. In the code, simply use the Markdown property.
WINDEVWINDEV Mobile

Edit control with Markdown text

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 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:
Securities
# 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
Citation
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://windev.com/windevmobile
[WINDEV Mobile][link]
WINDEV
Images
NB: URLs handled synchronously
PC SOFT logo:
![alt](logo.gif)

PC SOFT logo with tooltip:
![alt](logo.gif "title")
Special characters
\\
\#
\_
\-
\`
\!
\( \)
\{ \}
\[ \]
\
#
_
-
'
!
( )
{ }
[ ]
Text color
ce <span style="color: #26B260">
texte est vert</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: 02/09/2024

Send a report | Local help