HTML5 in
Oxygen
© 2020 Syncro Soft SRL. All rights reserved.
Octavian Nadolu, Syncro Soft
octavian_nadolu@oxygenxml.com
@OctavianNadolu
Mircea Enachescu, Syncro Soft
mircea@oxygenxml.com
HTML5 in Oxygen
HTML5
● HTML is the World Wide Web's core markup
language
● HTML5 was the fifth and last major version of
HTML
HTML5 in Oxygen
Agenda
● Specialized text-based and visual-based editing
● Syntax highlights based on the HTML5
specification
● Content completion based on the HTML5
schema
● Outline view that displays the document
structure
● Validation against the W3C validator, including
batch validation
HTML5 in Oxygen
Creating HTML5 Documents
● New document template
● Content completion
● Documentation and link to specification
● Code templates
HTML5 in Oxygen
New document template
● New document template helps you get started creating HTML content
● Define your own document templates
HTML5 in Oxygen
Content Completion
● Context-Sensitive
● Valid Proposals
● Documentation from Schema
● Code Templates
HTML5 in Oxygen
Editing HTML5
● Support to edit HTML5 documents (not
XML wellformed)
● HTML5 syntax highlight
● HTML5 Outline View
● Format an Indent
● Folding
● Embedded CSS an JavaScript support
HTML5 in Oxygen
Syntax Highlighting
● Syntax highlighting for HTML5 handles attributes without quotes, unclosed or
void elements
● Highlighting for embedded CSS or JavaScript content
● Customize colors
HTML5 in Oxygen
HTML5 Outline View
● Document Overview
● Synchronization with Editor
● Filtering
● Error Markers
HTML5 in Oxygen
Format an Indent
● Format HTML5
● Format Embedded CSS an JavaScript
HTML5 in Oxygen
Folding
● In a large HTML document, elements can be collapsed so that only the
needed data remains in focus
HTML5 in Oxygen
Embedded CSS an JavaScript Support
● Content completion and documentation for embedded CSS an JavaScript
HTML5 in Oxygen
HTML5 Visual Editing
● HTML5 framework
● Specific actions
● Content completion
HTML5 in Oxygen
HTML5 Author Page
HTML5 in Oxygen
HTML5 Validation
● Validation using W3C “Nu Html Checker”
● Validate HTML5 project
● Validation as-you-type
HTML5 in Oxygen
Batch Validate HTML5 Project
● Validate entire project
● Validate HTML5, CSS, and JavaScript
HTML5 in Oxygen
Validate HTML5 Document
● Validation highlights
● Tooltip with information about the problem
HTML5 in Oxygen
Validating HTML5 with Schematron
Coming Next!
HTML5 in Oxygen
Querying HTML5
● Query using XPath
● Run XPath on multiple HTML5
documents
HTML5 in Oxygen
XPath
● XPath Toolbar
● XPath Builder View
● Content Completion
● XPath Over Multiple Files
HTML5 in Oxygen
Minification/Compression
● Reduce the size of the HTML documents
● Available for HTML and CSS files
HTML5 in Oxygen
Minifying HTML5 Documents
● Remove unnecessary white spaces
● Remove comments
● Compress on a single line
HTML5 in Oxygen
Minifying CSS Stylesheets
● Removing unnecessary code without affecting the functionality
● Place each style rule on a new line
HTML5 in Oxygen
Emmet Plugin
● Oxygen supports Emmet snippets
● Toolkit for high-speed HTML coding and editing
● Type abbreviations, similar to CSS selectors, and
expand them into full-fledged HTML code
ul>li*5
docs.emmet.io
oxygenxml.com/doc/ug-editor/topics/emmet-addon.html
HTML5 in Oxygen
CSS-like Editing
● Expand abbreviation - expands abbreviations into code snippets
● Wrap with abbreviation - expands it and places currently selected content in
the last element of generated snippet
● Available for HTML and XML editors
● Specific abbreviations for XSLT
docs.emmet.io/cheat-sheet/
HTML5 in Oxygen
Expand Abbreviation
#page>div.logo+ul#navigation>li*5>a{Item $}
<div id="page">
<div class="logo"></div>
<ul id="navidation">
<li><a href="">Item 1</a></li>
<li><a href="">Item 2</a></li>
<li><a href="">Item 3</a></li>
<li><a href="">Item 4</a></li>
<li><a href="">Item 5</a></li>
</ul>
</div>
ul>li*5
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
HTML5 in Oxygen
Wrap With Abbreviation
ul>li[title=$#]*>{$#}+img[alt=$#]
<ul>
<li title="About">About<img src="" alt="About" class=""></li>
<li title="News">News<img src="" alt="News" class=""></li>
<li title="Products">Products<img src="" alt="Products" class=""></li>
<li title="Contacts">Contacts<img src="" alt="Contacts" class=""></li>
</ul>
About
News
Products
Contacts
HTML5 in Oxygen
Emmet Abbreviations Author
HTML5 in Oxygen
Conclusion
● HTML5 editing support
● Validation of HTML5 documents
● Query using XPath
● Compress HTML5 and CSS documents
● Emmet snippets
Questions?
Octavian Nadolu
Software Architect at Syncro Soft
octavian.nadolu@oxygenxml.com
Twitter: @OctavianNadolu
LinkedIn: octaviannadolu
Mircea Enachescu
Software Architect at Syncro Soft
mircea@oxygenxml.com

HTML5 Editing Validation

  • 1.
    HTML5 in Oxygen © 2020Syncro Soft SRL. All rights reserved. Octavian Nadolu, Syncro Soft octavian_nadolu@oxygenxml.com @OctavianNadolu Mircea Enachescu, Syncro Soft mircea@oxygenxml.com
  • 2.
    HTML5 in Oxygen HTML5 ●HTML is the World Wide Web's core markup language ● HTML5 was the fifth and last major version of HTML
  • 3.
    HTML5 in Oxygen Agenda ●Specialized text-based and visual-based editing ● Syntax highlights based on the HTML5 specification ● Content completion based on the HTML5 schema ● Outline view that displays the document structure ● Validation against the W3C validator, including batch validation
  • 4.
    HTML5 in Oxygen CreatingHTML5 Documents ● New document template ● Content completion ● Documentation and link to specification ● Code templates
  • 5.
    HTML5 in Oxygen Newdocument template ● New document template helps you get started creating HTML content ● Define your own document templates
  • 6.
    HTML5 in Oxygen ContentCompletion ● Context-Sensitive ● Valid Proposals ● Documentation from Schema ● Code Templates
  • 7.
    HTML5 in Oxygen EditingHTML5 ● Support to edit HTML5 documents (not XML wellformed) ● HTML5 syntax highlight ● HTML5 Outline View ● Format an Indent ● Folding ● Embedded CSS an JavaScript support
  • 8.
    HTML5 in Oxygen SyntaxHighlighting ● Syntax highlighting for HTML5 handles attributes without quotes, unclosed or void elements ● Highlighting for embedded CSS or JavaScript content ● Customize colors
  • 9.
    HTML5 in Oxygen HTML5Outline View ● Document Overview ● Synchronization with Editor ● Filtering ● Error Markers
  • 10.
    HTML5 in Oxygen Formatan Indent ● Format HTML5 ● Format Embedded CSS an JavaScript
  • 11.
    HTML5 in Oxygen Folding ●In a large HTML document, elements can be collapsed so that only the needed data remains in focus
  • 12.
    HTML5 in Oxygen EmbeddedCSS an JavaScript Support ● Content completion and documentation for embedded CSS an JavaScript
  • 13.
    HTML5 in Oxygen HTML5Visual Editing ● HTML5 framework ● Specific actions ● Content completion
  • 14.
  • 15.
    HTML5 in Oxygen HTML5Validation ● Validation using W3C “Nu Html Checker” ● Validate HTML5 project ● Validation as-you-type
  • 16.
    HTML5 in Oxygen BatchValidate HTML5 Project ● Validate entire project ● Validate HTML5, CSS, and JavaScript
  • 17.
    HTML5 in Oxygen ValidateHTML5 Document ● Validation highlights ● Tooltip with information about the problem
  • 18.
    HTML5 in Oxygen ValidatingHTML5 with Schematron Coming Next!
  • 19.
    HTML5 in Oxygen QueryingHTML5 ● Query using XPath ● Run XPath on multiple HTML5 documents
  • 20.
    HTML5 in Oxygen XPath ●XPath Toolbar ● XPath Builder View ● Content Completion ● XPath Over Multiple Files
  • 21.
    HTML5 in Oxygen Minification/Compression ●Reduce the size of the HTML documents ● Available for HTML and CSS files
  • 22.
    HTML5 in Oxygen MinifyingHTML5 Documents ● Remove unnecessary white spaces ● Remove comments ● Compress on a single line
  • 23.
    HTML5 in Oxygen MinifyingCSS Stylesheets ● Removing unnecessary code without affecting the functionality ● Place each style rule on a new line
  • 24.
    HTML5 in Oxygen EmmetPlugin ● Oxygen supports Emmet snippets ● Toolkit for high-speed HTML coding and editing ● Type abbreviations, similar to CSS selectors, and expand them into full-fledged HTML code ul>li*5 docs.emmet.io oxygenxml.com/doc/ug-editor/topics/emmet-addon.html
  • 25.
    HTML5 in Oxygen CSS-likeEditing ● Expand abbreviation - expands abbreviations into code snippets ● Wrap with abbreviation - expands it and places currently selected content in the last element of generated snippet ● Available for HTML and XML editors ● Specific abbreviations for XSLT docs.emmet.io/cheat-sheet/
  • 26.
    HTML5 in Oxygen ExpandAbbreviation #page>div.logo+ul#navigation>li*5>a{Item $} <div id="page"> <div class="logo"></div> <ul id="navidation"> <li><a href="">Item 1</a></li> <li><a href="">Item 2</a></li> <li><a href="">Item 3</a></li> <li><a href="">Item 4</a></li> <li><a href="">Item 5</a></li> </ul> </div> ul>li*5 <ul> <li></li> <li></li> <li></li> <li></li> <li></li> </ul>
  • 27.
    HTML5 in Oxygen WrapWith Abbreviation ul>li[title=$#]*>{$#}+img[alt=$#] <ul> <li title="About">About<img src="" alt="About" class=""></li> <li title="News">News<img src="" alt="News" class=""></li> <li title="Products">Products<img src="" alt="Products" class=""></li> <li title="Contacts">Contacts<img src="" alt="Contacts" class=""></li> </ul> About News Products Contacts
  • 28.
    HTML5 in Oxygen EmmetAbbreviations Author
  • 29.
    HTML5 in Oxygen Conclusion ●HTML5 editing support ● Validation of HTML5 documents ● Query using XPath ● Compress HTML5 and CSS documents ● Emmet snippets
  • 30.
    Questions? Octavian Nadolu Software Architectat Syncro Soft octavian.nadolu@oxygenxml.com Twitter: @OctavianNadolu LinkedIn: octaviannadolu Mircea Enachescu Software Architect at Syncro Soft mircea@oxygenxml.com