Skip to content
Snippets Groups Projects
AlternateCSPythonLexer.h 725 B
Newer Older
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
//   NScD Oak Ridge National Laboratory, European Spallation Source,
//   Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +

#include <Qsci/qscilexerpython.h>

/**
 * Defines a Python lexer with a alternative colour scheme
 * to the standard one provided by QsciLexerPython.
 */
class AlternateCSPythonLexer : public QsciLexerPython {
public:
  AlternateCSPythonLexer(const QFont &font);

  QColor defaultColor(int style) const override;
  QFont defaultFont(int style) const override;