Cara menggunakan show html code

IntelliJ IDEA brings powerful support for HTML that includes syntax and error highlighting, formatting according to the code style, structure validation, code completion, on-the-fly preview during a debugging session (Live Edit) or in the dedicated preview tab in the code editor, and much more.

Check the HTML Tools plugin

This functionality relies on the HTML Tools plugin . The plugin comes bundled with IntelliJ IDEA, but if you observe any malfunction, make sure that the plugin is enabled.

Note that the plugin and the supported functionality are not available for IntelliJ IDEA Community and Educational, it only works in the Ultimate edition.

  1. Press Ctrl+Alt+S to open the IDE settings and select .

  2. Open the Installed tab, find the HTML Tools plugin, and make sure that the checkbox next to the plugin name is selected.

HTML specification is configurable with the Default HTML language level preference on the Languages & Frameworks | Schemas and DTDs page of the IDE settings Ctrl+Alt+S. By default, specification HTML 5.0 from W3C is assumed.

Create an HTML file

  • From the main menu, select , and then select HTML File from the list. IntelliJ IDEA creates a stub file based on the HTML file template and opens it in the editor.

Create references in an HTML file

Inside a