51 lines
3.7 KiB
Plaintext
51 lines
3.7 KiB
Plaintext
---
|
|
title: QasmTerminalStyle (v0.31)
|
|
description: API reference for qiskit.qasm.QasmTerminalStyle in qiskit v0.31
|
|
in_page_toc_min_heading_level: 1
|
|
python_api_type: class
|
|
python_api_name: qiskit.qasm.QasmTerminalStyle
|
|
---
|
|
|
|
# QasmTerminalStyle
|
|
|
|
<Class id="qiskit.qasm.QasmTerminalStyle" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/qasm/pygments/lexer.py" signature="QasmTerminalStyle" modifiers="class">
|
|
Bases: `pygments.style.Style`
|
|
|
|
A style for OpenQasm in a Terminal env (e.g. Jupyter print).
|
|
|
|
## Attributes
|
|
|
|
### background\_color
|
|
|
|
<Attribute id="qiskit.qasm.QasmTerminalStyle.background_color" attributeValue="'#ffffff'" />
|
|
|
|
### highlight\_color
|
|
|
|
<Attribute id="qiskit.qasm.QasmTerminalStyle.highlight_color" attributeValue="'#ffffcc'" />
|
|
|
|
### line\_number\_background\_color
|
|
|
|
<Attribute id="qiskit.qasm.QasmTerminalStyle.line_number_background_color" attributeValue="'transparent'" />
|
|
|
|
### line\_number\_color
|
|
|
|
<Attribute id="qiskit.qasm.QasmTerminalStyle.line_number_color" attributeValue="'inherit'" />
|
|
|
|
### line\_number\_special\_background\_color
|
|
|
|
<Attribute id="qiskit.qasm.QasmTerminalStyle.line_number_special_background_color" attributeValue="'#ffffc0'" />
|
|
|
|
### line\_number\_special\_color
|
|
|
|
<Attribute id="qiskit.qasm.QasmTerminalStyle.line_number_special_color" attributeValue="'#000000'" />
|
|
|
|
### styles
|
|
|
|
<Attribute id="qiskit.qasm.QasmTerminalStyle.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: 'ansibrightgreen', Token.Keyword.Namespace: '', Token.Keyword.Pseudo: '', Token.Keyword.Reserved: 'ansibrightgreen', Token.Keyword.Type: 'ansibrightmagenta', Token.Literal: '', Token.Literal.Date: '', Token.Literal.Number: 'ansibrightcyan', 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: 'ansibrightred', 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: 'ansibrightblue', Token.Name.Builtin.Pseudo: '', Token.Name.Class: '', Token.Name.Constant: '', Token.Name.Decorator: '', Token.Name.Entity: '', Token.Name.Exception: '', Token.Name.Function: 'ansibrightyellow', 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.QasmTerminalStyle.web_style_gallery_exclude" attributeValue="False" />
|
|
</Class>
|
|
|