# Export to HTML

> **TL;DR**
> `File | Export | Files or Selection to HTML…`

Use this dialog to save selected files in HTML format. Configure the following options and click Export:

| File | Export the current file. |
| --- | --- |
| Selected text | Export the text selected in the editor. |
| All files in directory | Export all files in the current directory. |
| Include subdirectories | Also include files in the subdirectories of the current directory. |
| Output directory | Specify the absolute path to the directory where the resulting HTML file will be stored. |
| Show line numbers | Include line numbers in the resulting HTML file. |
| Generate hyperlinks to classes | Format class names as hyperlinks to the respective classes. |
| Open generated HTML in browser | Show the generated HTML file in the default web browser. |

