|
.oO SearXNG Developer Documentation Oo.
|
Classes | |
| class | Code |
Functions | |
| bool | is_valid_language (str code_language) |
Variables | |
| list | __all__ = ["Code"] |
| list | _pygments_languages = [] |
Typification of the *code* results. Results of this type are rendered in the :origin:`code.html <searx/templates/simple/result_templates/code.html>` template. For highlighting the code passages, Pygments_ is used. .. _Pygments: https://pygments.org ---- .. autoclass:: Code :members: :show-inheritance:
| bool searx.result_types.code.is_valid_language | ( | str | code_language | ) |
Checks if the specified ``code_language`` is known in Pygments.
Definition at line 35 of file code.py.