Source Code (Use browser search to find items of interest.)

Class Index

kdevelop'LatexHighlight (./kdevelop/kdevelop/kwrite/highlight.h:515)

class LatexHighlight : public GenHighlight {
  public:
    LatexHighlight(const QString &name);
    virtual ~LatexHighlight();
  protected:
    virtual void createItemData(ItemDataList &);
    virtual void makeContextList();
};

//class KWriteDoc;


kdevelop'LatexHighlight::LatexHighlight() (./kdevelop/kdevelop/kwrite/highlight.cpp:1756)

LatexHighlight::LatexHighlight(const QString &name) : GenHighlight(name) {
  iWildcards = "*.tex;*.sty";
  iMimetypes = "text/x-tex";
}


kdevelop'LatexHighlight::~LatexHighlight() (./kdevelop/kdevelop/kwrite/highlight.cpp:1761)

LatexHighlight::~LatexHighlight() {
}


kdevelop'LatexHighlight::createItemData() (./kdevelop/kdevelop/kwrite/highlight.cpp:1764)

void LatexHighlight::createItemData(ItemDataList &list) {

  list.append(new ItemData(i18nop("Normal Text"), dsNormal));
  list.append(new ItemData(i18nop("Tag/Keyword"), dsKeyword));
  list.append(new ItemData(i18nop("Char"       ), dsChar));
  list.append(new ItemData(i18nop("Parameter"  ), dsDecVal));
  list.append(new ItemData(i18nop("Comment"    ), dsComment));
}


kdevelop'LatexHighlight::makeContextList() (./kdevelop/kdevelop/kwrite/highlight.cpp:1773)

void LatexHighlight::makeContextList() {
  HlContext *c;

  //normal context
  contextList[0] = c = new HlContext(0,0);
    c->items.append(new HlLatexTag(1,0));
    c->items.append(new HlLatexChar(2,0));
    c->items.append(new HlLatexParam(3,0));
    c->items.append(new HlCharDetect(4,1,'%'));
  //one line comment context
  contextList[1] = new HlContext(4,0);
}

//--------