Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

QasmHTMLStyle

class QasmHTMLStyle

GitHub

Bases: pygments.style.Style

A style for OpenQasm in a HTML env (e.g. Jupyter widget).


Attributes

background_color

Default value: '#ffffff'

highlight_color

Default value: '#ffffcc'

line_number_background_color

Default value: 'transparent'

line_number_color

Default value: 'inherit'

line_number_special_background_color

Default value: '#ffffc0'

line_number_special_color

Default value: '#000000'

styles

Default value: {Token: '', Token.Comment: '', Token.Comment.Hashbang: '', Token.Comment.Multiline: '', Token.Comment.Preproc: '', Token.Comment.PreprocFile: '', Token.Comment.Single: '', Token.Comment.Special: '', Token.Error: '', Token.Escape: '', Token.Generic: '', Token.Generic.Deleted: '', Token.Generic.Emph: '', Token.Generic.Error: '', Token.Generic.Heading: '', Token.Generic.Inserted: '', Token.Generic.Output: '', Token.Generic.Prompt: '', Token.Generic.Strong: '', Token.Generic.Subheading: '', Token.Generic.Traceback: '', Token.Keyword: '', Token.Keyword.Constant: '', Token.Keyword.Declaration: 'ansigreen', Token.Keyword.Namespace: '', Token.Keyword.Pseudo: '', Token.Keyword.Reserved: 'ansigreen', Token.Keyword.Type: 'ansimagenta', Token.Literal: '', Token.Literal.Date: '', Token.Literal.Number: 'ansicyan', Token.Literal.Number.Bin: '', Token.Literal.Number.Float: '', Token.Literal.Number.Hex: '', Token.Literal.Number.Integer: '', Token.Literal.Number.Integer.Long: '', Token.Literal.Number.Oct: '', Token.Literal.String: 'ansired', Token.Literal.String.Affix: '', Token.Literal.String.Backtick: '', Token.Literal.String.Char: '', Token.Literal.String.Delimiter: '', Token.Literal.String.Doc: '', Token.Literal.String.Double: '', Token.Literal.String.Escape: '', Token.Literal.String.Heredoc: '', Token.Literal.String.Interpol: '', Token.Literal.String.Other: '', Token.Literal.String.Regex: '', Token.Literal.String.Single: '', Token.Literal.String.Symbol: '', Token.Name: '', Token.Name.Attribute: '', Token.Name.Builtin: 'ansiblue', Token.Name.Builtin.Pseudo: '', Token.Name.Class: '', Token.Name.Constant: '', Token.Name.Decorator: '', Token.Name.Entity: '', Token.Name.Exception: '', Token.Name.Function: 'ansiyellow', Token.Name.Function.Magic: '', Token.Name.Label: '', Token.Name.Namespace: '', Token.Name.Other: '', Token.Name.Property: '', Token.Name.Tag: '', Token.Name.Variable: '', Token.Name.Variable.Class: '', Token.Name.Variable.Global: '', Token.Name.Variable.Instance: '', Token.Name.Variable.Magic: '', Token.Operator: '', Token.Operator.Word: '', Token.Other: '', Token.Punctuation: '', Token.Text: '', Token.Text.Whitespace: ''}

Default value: False

Was this page helpful?
Report a bug or request content on GitHub.