-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhighlighter.h
42 lines (33 loc) · 1.09 KB
/
highlighter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// Created by Gyebro on 2018. 02. 09..
//
#ifndef APDL_HIGHLIGHT_HIGHLIGHTER_H
#define APDL_HIGHLIGHT_HIGHLIGHTER_H
#include "highlight_config.h"
#define PRODUCT_NAME "APDL highlighter"
#define VERSION_STRING "0.1-beta"
class highlighter {
private:
tooltip_config tcfgAPDL;
tooltip_config tcfgPARAM;
user_config ucfg;
unsigned indentationLevel;
unsigned lineNumber;
string processLinesHTMLCode(string line);
string get_tooltip(string keyword);
string get_footer(string input_file);
string get_product_name();
string get_version_string();
string get_timestamp_string();
public:
highlighter(string APDLElemsFile, string userconfig_file);
void updateParams(string scriptFile);
void highlightHTML(string input_file);
void highlightTeX(string input_file);
string processLinesTeXCode(string line);
};
string processLinesTeXSkip(vector<string> &lines);
string processLinesHTMLSkip(vector<string>& lines);
string processLinesTeXFigure(vector<string> &lines);
string processLinesHTMLFigure(vector<string>& lines);
#endif //APDL_HIGHLIGHT_HIGHLIGHTER_H