qiskit-documentation/docs/api/qiskit/0.31/qiskit.qasm.QasmHTMLStyle.mdx

51 lines
3.6 KiB
Plaintext

---
title: QasmHTMLStyle (v0.31)
description: API reference for qiskit.qasm.QasmHTMLStyle in qiskit v0.31
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.qasm.QasmHTMLStyle
---
# QasmHTMLStyle
<Class id="qiskit.qasm.QasmHTMLStyle" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/qasm/pygments/lexer.py" signature="QasmHTMLStyle" modifiers="class">
Bases: `pygments.style.Style`
A style for OpenQasm in a HTML env (e.g. Jupyter widget).
## Attributes
### background\_color
<Attribute id="qiskit.qasm.QasmHTMLStyle.background_color" attributeValue="'#ffffff'" />
### highlight\_color
<Attribute id="qiskit.qasm.QasmHTMLStyle.highlight_color" attributeValue="'#ffffcc'" />
### line\_number\_background\_color
<Attribute id="qiskit.qasm.QasmHTMLStyle.line_number_background_color" attributeValue="'transparent'" />
### line\_number\_color
<Attribute id="qiskit.qasm.QasmHTMLStyle.line_number_color" attributeValue="'inherit'" />
### line\_number\_special\_background\_color
<Attribute id="qiskit.qasm.QasmHTMLStyle.line_number_special_background_color" attributeValue="'#ffffc0'" />
### line\_number\_special\_color
<Attribute id="qiskit.qasm.QasmHTMLStyle.line_number_special_color" attributeValue="'#000000'" />
### styles
<Attribute id="qiskit.qasm.QasmHTMLStyle.styles" attributeValue="{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: ''}" />
### web\_style\_gallery\_exclude
<Attribute id="qiskit.qasm.QasmHTMLStyle.web_style_gallery_exclude" attributeValue="False" />
</Class>