15 lines
533 B
Plaintext
15 lines
533 B
Plaintext
#include "file_viewer.nvgt"
|
|
|
|
// Optional compatibility aliases for projects that still call text_reader*.
|
|
string text_reader(string content, string title = "Text Reader", bool readOnly = true) {
|
|
return file_viewer(content, title, readOnly);
|
|
}
|
|
|
|
string text_reader_lines(string[] lines, string title = "Text Reader", bool readOnly = true) {
|
|
return file_viewer_lines(lines, title, readOnly);
|
|
}
|
|
|
|
string text_reader_file(string filePath, string title = "", bool readOnly = true) {
|
|
return file_viewer_file(filePath, title, readOnly);
|
|
}
|