Source

qtm-1.x / Highlighter.cc

Matthew Smith 1208048 




Matthew Smith 034d54b 

Matthew Smith 1208048 




Matthew Smith 034d54b 
Matthew Smith 1208048 










// Highlighter.cc - Syntax highlighter for HTML elements in QTM documents
//
// Copyright 2008 Matthew J Smith
// Distributed under the GNU General Public License, version 2 or later

#include <QtGui>

#include "Highlighter.h"

Highlighter::Highlighter( QObject *parent )
  : QSyntaxHighlighter( parent )
{
  HighlightingRule rule;


}

void Highlighter::highlightBlock( const QString &block )
{
// Formatting for HTML tags
  htmlTagFormat.setForeground( Qt::darkRed );

// Formatting for HTML entities, i.e. &eacute; and so on
  htmlEntityFormat.setForeground( Qt::darkMagenta );
}