Python pygments.util.string_types() Examples
The following are 7
code examples of pygments.util.string_types().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
pygments.util
, or try the search function
.
Example #1
Source File: formatter.py From pigaios with GNU General Public License v3.0 | 5 votes |
def _lookup_style(style): if isinstance(style, string_types): return get_style_by_name(style) return style
Example #2
Source File: formatter.py From pySINDy with MIT License | 5 votes |
def _lookup_style(style): if isinstance(style, string_types): return get_style_by_name(style) return style
Example #3
Source File: formatter.py From komodo-wakatime with BSD 3-Clause "New" or "Revised" License | 5 votes |
def _lookup_style(style): if isinstance(style, string_types): return get_style_by_name(style) return style
Example #4
Source File: formatter.py From Carnets with BSD 3-Clause "New" or "Revised" License | 5 votes |
def _lookup_style(style): if isinstance(style, string_types): return get_style_by_name(style) return style
Example #5
Source File: formatter.py From diaphora with GNU Affero General Public License v3.0 | 5 votes |
def _lookup_style(style): if isinstance(style, string_types): return get_style_by_name(style) return style
Example #6
Source File: formatter.py From android_universal with MIT License | 5 votes |
def _lookup_style(style): if isinstance(style, string_types): return get_style_by_name(style) return style
Example #7
Source File: formatter.py From syntax-highlighting with GNU Affero General Public License v3.0 | 5 votes |
def _lookup_style(style): if isinstance(style, string_types): return get_style_by_name(style) return style