Markup Languages and Style Sheets
In this section:
- Markup Languages and Style Sheets
- Changing Color Values in Style Sheets
- Compiling Sass, Less, and SCSS to CSS
- Compiling Stylus to CSS
- CSS-Specific Refactorings
- Minifying CSS
- Sass and SCSS in Compass Projects
- Stylelint
- Viewing Styles Applied to a Tag
- Referencing XML Schemas and DTDs
- Validating Web Content Files
- Viewing Images
- Emmet Support
In this part you will find information that is specific for the web content files only! |
Supported markup and template languages
AppCode supports editing of files in the following markup and template languages:
- XML
- HTML/XHTML
- CSS
- Sass, SCSS
- Less
- Jade
- YAML
The markup languages and Style Sheets are integrated into AppCode and can use the most powerful editing features:
- Validation and syntax highlighting.
- Code completion (⌃Space).
- Indentation (⌃⌥I, ⌥⌘L).
- Formatting (⌥⌘L) according to the code style.
- Intention actions (⌥⏎).
- Viewing code structure (⌘7).
- Navigation in the source code (⌘B).
- Integrated documentation (F1).
- Search for usages (⌥F7).
- Commenting and uncommenting lines (⌘/, ⌥⌘/).
- Unwrapping and removing tags (⇧⌘⌦).
All these features work if AppCode successfully locates the DTD or schema file. In this case, all the files are validated against the DTD or schema, and the editing conveniences become available. Without a DTD or schema, only the well-formedness check is possible.
These features for web contents work same way as for the other source files. Refer to Keyboard shortcuts.
Parsing Web contents
AppCode parses Web contents files according to the following specifications:
- HTML: specification is configurable in the Default HTML language level in the Schemas and DTDs page of the Settings/Preferences dialog. By default, specification HTML 5.0 from W3C is assumed.
- CSS: specification CSS 3.0. The most common selectors are supported: universal selector
*
, type selectors.a
, descendant selectors.a.b
, child selectors.a .b
, ID selectors#b
, pseudo-classes and class selectorsDIV.warning
. - AppCode uses Xerces 2.11, an XML parser developed by Apache Software Foundation Group.