blob: a6554802331d70328a67e5452576b32b50b54f2b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//
// Created by bmestanov on 25.10.18.
//
#ifndef ES2HTML_HIGHLIGHTER_H
#define ES2HTML_HIGHLIGHTER_H
#include "Token.h"
class Highlighter {
public:
explicit Highlighter(const char *outputPath = nullptr, const char *stylePath = "style.css");
void highlight(const IPLVector<Token> &tokens);
private:
const char *stylePath;
const char *outputPath;
static IPLString getClass(const Token &token);
};
#endif //ES2HTML_HIGHLIGHTER_H
|