Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section


Column

Features

  • Supports capabilities for including data similar to other scripting macros.
  • Supports find and replace for adjusting resulting output.
  • Allows the user to restrict the usage of Javascript in the HTML macro (based on the configuration of on Allow Javascript in the Configuration page). The Confluence page throws a rendering error if this parameter is not enabled, and Javascript is inserted while using the macro.

Other HTML macros


...

Tip

By default, header content is excluded as it could interfere with Confluence page HTML. Use head=true to include anyway, provided it does not disturb the content.

...

  • HTML from a file in the script folder in the Confluence home directory

    No Format
    {html:script=#example.html}
    {html}
    


  • HTML from an attachment

    No Format
    {html:script=^example.html}
    {html}
    


  • HTML put within {noformat} panel

    No Format
    {html:output=wiki|noPanel=true}
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    Aliquam fermentum vestibulum est. Cras rhoncus.
    {html}
    


  • HTML from an URL

    No Format
    {html:script=#http://localhost/example.html}
    {html}
    


  • Use of CSS inline style sheet

    No Format
    {html}
    <P style="font-size: x-large; color: #8000">
       Using inline style sheets - or is that inline styles?
    </p>
    {html}
    


  • Use of CSS external style sheet

    No Format
    {html}
    <LINK href="http://www.cssgarden.com/css/T22/keylime_0001.css"  rel="stylesheet" title="default" type="text/css"></LINK>
    <H1>Absolute </H1>
    {html}


Info
Make sure that the style sheet is available on a the server and provide an absolute URL reference to this external style sheet resource.

...