-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDOCUMENTATION_Generator.cpp
More file actions
2881 lines (2847 loc) · 419 KB
/
DOCUMENTATION_Generator.cpp
File metadata and controls
2881 lines (2847 loc) · 419 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#if __has_include("srell.hpp")
#include "srell.hpp"
#define USE_POWERFUL_REGEX 1
#pragma message("SUCCESS: Compiling with powerful SRELL regex engine. Lookbehinds will work.")
#else
#include <regex>
#define USE_POWERFUL_REGEX 0
#pragma message("WARNING: srell.hpp not found. Falling back to limited std::regex. Lookbehinds will NOT work.")
#endif
#include <algorithm>
#include <any>
#include <array>
#include <cctype>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <memory>
#include <optional>
#include <regex>
#include <set>
#include <sstream>
#include <stdexcept>
#include <string>
#include <system_error>
#include <type_traits>
#include <vector>
// Function to escape special characters for regex
std::string escapeRegex(const std::string& str) {
static const std::regex specialChars{R"([-[\]{}()*+?.,\^$|#\s])"};
return std::regex_replace(str, specialChars, R"(\$&)");
}
// Function to split a string based on delimiters
std::vector<std::string> LoopParseFunc(const std::string& var, const std::string& delimiter1 = "", const std::string& delimiter2 = "") {
std::vector<std::string> items;
if (delimiter1.empty() && delimiter2.empty()) {
// If no delimiters are provided, return a list of characters
for (char c : var) {
items.push_back(std::string(1, c));
}
} else {
// Escape delimiters for regex
std::string escapedDelimiters = escapeRegex(delimiter1 + delimiter2);
// Construct the regular expression pattern for splitting the string
std::string pattern = "[" + escapedDelimiters + "]+";
std::regex regexPattern(pattern);
std::sregex_token_iterator iter(var.begin(), var.end(), regexPattern, -1);
std::sregex_token_iterator end;
while (iter != end) {
items.push_back(*iter++);
}
}
return items;
}
// Print function for const char*
void print(const char* value) {
std::cout << std::string(value) << std::endl;
}
// Handle signed 8-bit integers
void print(int8_t value) {
std::cout << static_cast<int>(value) << std::endl;
}
// Handle unsigned 8-bit integers
void print(uint8_t value) {
std::cout << static_cast<unsigned int>(value) << std::endl;
}
// Generic print function fallback
template <typename T>
void print(const T& value) {
std::cout << value << std::endl;
}
// Convert various types to std::string
std::string STR(int value) {
return std::to_string(value);
}
// Convert various types to std::string
std::string STR(long long value) {
return std::to_string(value);
}
std::string STR(float value) {
return std::to_string(value);
}
std::string STR(double value) {
return std::to_string(value);
}
std::string STR(size_t value) {
return std::to_string(value);
}
std::string STR(bool value) {
return value ? "1" : "0";
}
std::string STR(const char* value) {
return std::string(value);
}
std::string STR(const std::string& value) {
return value;
}
// Function to find the position of needle in haystack (std::string overload)
int InStr(const std::string& haystack, const std::string& needle) {
size_t pos = haystack.find(needle);
return (pos != std::string::npos) ? static_cast<int>(pos) + 1 : 0;
}
std::string FileRead(const std::string& path) {
// This function relies on <fstream>, which is already in your global includes.
std::ifstream file(path);
if (!file.is_open()) {
throw std::runtime_error("Error: Could not open the file: " + path);
}
std::string content;
std::string line;
while (std::getline(file, line)) {
content += line + '\n';
}
file.close();
return content;
}
bool FileAppend(const std::string& content, const std::string& path) {
std::ofstream file;
// Open the file in append mode
file.open(path, std::ios::app);
if (!file.is_open()) {
std::cerr << "Error: Could not open the file for appending." << std::endl;
return false;
}
// Append the content to the file
file << content;
// Close the file
file.close();
return true;
}
bool FileDelete(const std::string& path) {
return std::remove(path.c_str()) == 0;
}
std::string SubStr(const std::string& str, int startPos, int length = -1) {
std::string result;
size_t strLen = str.size();
// Handle negative starting positions (counting from the end)
if (startPos < 0) {
startPos = strLen + startPos;
if (startPos < 0) startPos = 0; // Ensure it doesn't go beyond the start of the string
}
else {
startPos -= 1; // Convert to 0-based index for internal operations
}
// Handle length
if (length < 0) {
length = strLen - startPos; // Length to the end of the string
} else if (startPos + length > static_cast<int>(strLen)) {
length = strLen - startPos; // Adjust length to fit within the string
}
// Extract the substring
result = str.substr(startPos, length);
return result;
}
std::string Trim(const std::string &inputString) {
if (inputString.empty()) return "";
size_t start = inputString.find_first_not_of(" \t\n\r\f\v");
size_t end = inputString.find_last_not_of(" \t\n\r\f\v");
return (start == std::string::npos) ? "" : inputString.substr(start, end - start + 1);
}
std::string StrReplace(const std::string &originalString, const std::string &find, const std::string &replaceWith) {
std::string result = originalString;
size_t pos = 0;
while ((pos = result.find(find, pos)) != std::string::npos) {
result.replace(pos, find.length(), replaceWith);
pos += replaceWith.length();
}
return result;
}
std::string StringTrimRight(const std::string &input, int numChars) {
return (numChars <= input.length()) ? input.substr(0, input.length() - numChars) : input;
}
std::string StrLower(const std::string &string) {
std::string result = string;
std::transform(result.begin(), result.end(), result.begin(), ::tolower);
return result;
}
std::string StrSplit(const std::string &inputStr, const std::string &delimiter, int num) {
size_t start = 0, end = 0, count = 0;
while ((end = inputStr.find(delimiter, start)) != std::string::npos) {
if (++count == num) {
return inputStr.substr(start, end - start);
}
start = end + delimiter.length();
}
if (count + 1 == num) {
return inputStr.substr(start);
}
return "";
}
std::string Chr(int number) {
return (number >= 0 && number <= 0x10FFFF) ? std::string(1, static_cast<char>(number)) : "";
}
// Checks if a file or directory exists
bool FileExist(const std::string& path) {
// [FIX] This relies on <fstream>, which is already in your global includes.
std::ifstream file(path);
return file.good();
}
// Function to check if the operating system is Windows
bool isWindows() {
#ifdef _WIN32
return true;
#else
return false;
#endif
}
#ifdef _WIN32
#define ARGC __argc
#define ARGV __argv
#else
extern char **environ;
int ARGC;
char** ARGV;
__attribute__((constructor)) void init_args(int argc, char* argv[], char* envp[]) {
ARGC = argc;
ARGV = argv;
}
#endif
std::string GetParams() {
// [FIX] This function is now safe as it does not use std::filesystem.
std::vector<std::string> params;
for (int i = 1; i < ARGC; ++i) {
params.push_back(ARGV[i]);
}
std::string result;
for (const auto& param : params) {
result += param + "\n";
}
return result;
}
std::string RegExReplace(std::string_view inputStr, std::string_view regexPattern, std::string_view replacement) {
#if USE_POWERFUL_REGEX
// --- SRELL PATH ---
try {
const srell::regex re = srell::regex(regexPattern.data(), regexPattern.size());
return srell::regex_replace(std::string(inputStr), re, std::string(replacement));
} catch (const srell::regex_error& e) {
// ERROR IS CAUGHT, BUT WE DO NOTHING. NO MORE MESSAGE.
return std::string(inputStr); // Return original string on failure
}
#else
// --- FALLBACK PATH ---
try {
const std::regex re{std::string(regexPattern)};
return std::regex_replace(std::string(inputStr), re, std::string(replacement));
} catch (const std::regex_error& e) {
// ERROR IS CAUGHT, BUT WE DO NOTHING. NO MORE MESSAGE.
return std::string(inputStr); // Return original string on failure
}
#endif
}
std::string RunCMD(const std::string& command) {
std::array<char, 128> buffer;
std::string result;
#if defined(_WIN32)
std::unique_ptr<FILE, decltype(&_pclose)> pipe(_popen(command.c_str(), "r"), _pclose);
#else
std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(command.c_str(), "r"), pclose);
#endif
if (!pipe) {
throw std::runtime_error("popen() failed!");
}
while (fgets(buffer.data(), buffer.size(), pipe.get()) != nullptr) {
result += buffer.data();
}
return result;
}
void ExitApp() {
std::exit(0);
}
// Function to sort and remove duplicates
std::vector<std::string> sortArr(const std::vector<std::string>& input) {
std::set<std::string> uniqueSorted(input.begin(), input.end());
return std::vector<std::string>(uniqueSorted.begin(), uniqueSorted.end());
}
// Overload for counting a single character
int countChars(const std::string& str, char theChar) {
int count = 0;
for (char c : str) {
if (c == theChar) {
count++;
}
}
return count;
}
// Overload for counting a substring
int countChars(const std::string& str, const std::string& substring) {
if (substring.empty()) return 0; // Avoid infinite loop
int count = 0;
size_t pos = 0;
// Find occurrences of the substring
while ((pos = str.find(substring, pos)) != std::string::npos) {
count++;
pos += substring.length(); // Move past the found substring
}
return count;
}
std::string StrTitleCase(const std::string& input) {
std::string result;
bool newWord = true;
for (char ch : input) {
if (std::isspace(ch)) {
newWord = true; // next character starts a new word
result += ch;
} else if (newWord) {
result += std::toupper(ch); // capitalize the first letter of the word
newWord = false;
} else {
result += std::tolower(ch); // make other letters lowercase
}
}
return result;
}
std::string HTVM_getLang_HTVM() {
return "cpp";
}
void HTVM_Append(std::vector<std::string>& arr, const std::string& value) {
arr.push_back(value);
}
void HTVM_Append(std::vector<std::string>& arr, const char* value) {
arr.push_back(std::string(value));
}
void HTVM_Append(std::vector<int>& arr, int value) {
arr.push_back(value);
}
void HTVM_Append(std::vector<float>& arr, float value) {
arr.push_back(value);
}
void HTVM_Append(std::vector<bool>& arr, bool value) {
arr.push_back(value);
}
size_t HTVM_Size(const std::vector<std::string>& arr) {
return arr.size();
}
size_t HTVM_Size(const std::vector<int>& arr) {
return arr.size();
}
size_t HTVM_Size(const std::vector<float>& arr) {
return arr.size();
}
size_t HTVM_Size(const std::vector<bool>& arr) {
return arr.size();
}
std::string instructionFileData = "";
std::string DOCS_params = "";
std::string DOCS_param1 = "";
std::string DOCS_param2 = "";
int DOCS_checkIfFuncNameExists = 0;
std::string OUTdocs_HTML = "";
std::string OUTdocs_MD = "";
int htvmSnippetAlredy = 0;
std::string htvmSnippet000 = "";
std::string htvmSnippet00 = "";
std::string htvmSnippet0 = "";
std::string htvmSnippet1 = "";
std::string htvmSnippet2 = "";
std::string htvmSnippet3 = "";
std::string htvmSnippet4 = "";
std::string htvmSnippet5 = "";
std::string htvmSnippet6 = "";
std::string htvmSnippet7 = "";
std::string htvmSnippet8 = "";
std::string htvmSnippet9 = "";
std::string htvmSnippet10 = "";
std::string htvmSnippet11 = "";
std::string htvmSnippet12 = "";
std::string htvmSnippet13 = "";
std::string htvmSnippet14 = "";
std::string htvmSnippet15 = "";
std::string htvmSnippet16 = "";
std::string htvmSnippet17 = "";
std::string htvmSnippet18 = "";
std::string htvmSnippet19 = "";
std::string htvmSnippet20 = "";
std::string htvmSnippet21 = "";
std::string htvmSnippet22 = "";
std::string htvmSnippet23 = "";
std::string htvmSnippet24 = "";
std::string htvmSnippet25 = "";
std::string htvmSnippet26 = "";
std::string htvmSnippet27 = "";
std::string htvmSnippet28 = "";
std::string htvmSnippet29 = "";
std::string htvmSnippet30 = "";
std::string htvmSnippet31 = "";
std::string htvmSnippet32 = "";
std::string htvmSnippet33 = "";
std::string htvmSnippet34 = "";
std::string htvmSnippet35 = "";
std::string htvmSnippet36 = "";
std::string htvmSnippet37 = "";
std::string htvmSnippet38 = "";
std::string htvmSnippet39 = "";
std::string htvmSnippet40 = "";
std::string htvmSnippet41 = "";
std::string htvmSnippet42 = "";
std::string htvmSnippet43 = "";
std::string htvmSnippet44 = "";
std::string htvmSnippet45 = "";
std::string htvmSnippet46 = "";
std::string htvmSnippet47 = "";
std::string htvmSnippet48 = "";
std::string htvmSnippet49 = "";
std::string htvmSnippet50 = "";
std::string htvmSnippet51 = "";
std::string htvmSnippet52 = "";
std::string htvmSnippet53 = "";
std::string htvmSnippet54 = "";
std::string htvmSnippet55 = "";
std::string htvmSnippet56 = "";
std::string htvmSnippet57 = "";
std::string htvmSnippet58 = "";
std::string htvmSnippet59 = "";
std::string htvmSnippet60 = "";
std::string htvmSnippet61 = "";
std::string htvmSnippet62 = "";
std::string htvmSnippet63 = "";
std::string htvmSnippet64 = "";
std::string htvmSnippet65 = "";
std::string htvmSnippet66 = "";
std::string htvmSnippet67 = "";
std::string htvmSnippet68 = "";
std::string htvmSnippet69 = "";
std::string htvmSnippet70 = "";
std::string htvmSnippet71 = "";
std::string htvmSnippet72 = "";
std::string htvmSnippet73 = "";
std::string htvmSnippet74 = "";
std::string htvmSnippet75 = "";
std::string htvmSnippet76 = "";
std::string htvmSnippet77 = "";
std::string htvmSnippet78 = "";
std::string htvmSnippet79 = "";
std::string htvmSnippet80 = "";
std::string htvmSnippet81 = "";
std::string htvmSnippet82 = "";
std::string htvmSnippet83 = "";
std::string htvmSnippet84 = "";
std::string htvmSnippet85 = "";
std::string htvmSnippet86 = "";
std::string htvmSnippet87 = "";
std::string htvmSnippet88 = "";
std::string htvmSnippet89 = "";
std::string htvmSnippet90 = "";
std::string htvmSnippet91 = "";
std::string htvmSnippet92 = "";
std::string htvmSnippet93 = "";
std::string htvmSnippet94 = "";
std::string htvmSnippet95 = "";
std::string htvmSnippet96 = "";
std::string htvmSnippet97 = "";
std::string htvmSnippet98 = "";
std::string htvmSnippet99 = "";
std::string htvmSnippet100 = "";
std::string htvmSnippet101 = "";
std::string htvmSnippet102 = "";
std::string htvmSnippet103 = "";
std::string htvmSnippet104 = "";
std::string htvmSnippet105 = "";
std::string htvmSnippet106 = "";
std::string escapeStr(const std::string& str) {
std::string encoded;
for (char c : str) {
switch (c) {
case '\\': encoded += "\\\\"; break;
case '`': encoded += "\\`"; break;
case '$': encoded += "\\$"; break; // Only if preventing `${` interpolation
case '\n': encoded += "\\n"; break;
case '\t': encoded += "\\t"; break;
case '\r': encoded += "\\r"; break;
default: encoded += c;
}
}
return encoded;
}
std::vector<std::string> parseDocumentationTemplates() {
std::vector<std::string> mdFiles;
int numFiles = 0;
try {
// Include folder path
std::string numStr = FileRead("DocumentationTemplates/num.txt");
numFiles = std::stoi(numStr);
} catch (const std::exception& e) {
std::cerr << "Failed to read num.txt: " << e.what() << std::endl;
return mdFiles;
}
for (int i = 1; i <= numFiles; ++i) {
std::string filename = "DocumentationTemplates/" + std::to_string(i) + ".md";
try {
std::string content = FileRead(filename);
// Trim leading and trailing empty lines
size_t start = content.find_first_not_of("\r\n\t ");
size_t end = content.find_last_not_of("\r\n\t ");
if (start != std::string::npos && end != std::string::npos) {
content = content.substr(start, end - start + 1);
} else {
content = "";
}
mdFiles.push_back(content);
} catch (const std::exception& e) {
std::cerr << "Failed to read " << filename << ": " << e.what() << std::endl;
mdFiles.push_back(""); // insert empty string if failed
}
}
return mdFiles;
}
// RunCMD(
#include <iostream>
#include <cstdio>
#include <string>
#include <array>
#include <memory>
#include <stdexcept>
#include <filesystem>
// Function to extract directory path from a full file path
std::string GetDirectoryPath(const std::string& fullPath) {
size_t pos = fullPath.find_last_of("/\\");
if (std::string::npos != pos) {
// If a separator is found, return the path up to that point.
return fullPath.substr(0, pos);
}
// If no separator is found, it's a file in the current directory. Return ".".
return ".";
}
#include <memory>
#ifdef _WIN32
#include <windows.h>
#else
#include <cstdio>
#include <array>
#endif
std::string convertSnipetToAnotherSyntax(std::string instrFile, std::string codeSnippet) {
std::string out = "";
std::string str0 = "";
std::string instr0 = "";
std::string instr1 = "";
std::string instr2 = "";
std::string instr3 = "";
std::string instr4 = "";
std::string directoryPath = "";
if (HTVM_getLang_HTVM() == "cpp") {
str0 = "";
str0 = FileRead(Trim(instrFile));
std::vector<std::string> items1 = LoopParseFunc(str0, "\n", "\r");
for (size_t A_Index1 = 0; A_Index1 < items1.size(); A_Index1++) {
std::string A_LoopField1 = items1[A_Index1 - 0];
if (A_Index1 == 1) {
instr3 = Trim(A_LoopField1);
break;
}
}
instr0 = "cpp" + Chr(10) + instr3 + Chr(10) + "StringTrimLeft,OUTVAR,INVAR,param1|StringTrimRight,OUTVAR,INVAR,param1|Random,OUTVAR,param1,param2|Sleep,INVAR|FileRead,OUTVAR,'param1|FileAppend,INVAR,'param1|FileDelete,'INVAR|Sort,INOUTVAR,'param1|MsgBox,'param1" + Chr(10) + "alliance" + Chr(10) + "crew" + Chr(10) + "proc" + Chr(10) + "struct" + Chr(10) + "prop" + Chr(10) + "this" + Chr(10) + "import" + Chr(10) + "___start" + Chr(10) + "___end" + Chr(10) + "___cpp start" + Chr(10) + "___cpp end" + Chr(10) + "___py start" + Chr(10) + "___py end" + Chr(10) + "___js start" + Chr(10) + "___js end" + Chr(10) + "___go start" + Chr(10) + "___go end" + Chr(10) + "___lua start" + Chr(10) + "___lua end" + Chr(10) + "___cs start" + Chr(10) + "___cs end" + Chr(10) + "___java start" + Chr(10) + "___java end" + Chr(10) + "___kt start" + Chr(10) + "___kt end" + Chr(10) + "___rb start" + Chr(10) + "___rb end" + Chr(10) + "___nim start" + Chr(10) + "___nim end" + Chr(10) + "___ahk start" + Chr(10) + "___ahk end" + Chr(10) + "___swift start" + Chr(10) + "___swift end" + Chr(10) + "___dart start" + Chr(10) + "___dart end" + Chr(10) + "___ts start" + Chr(10) + "___ts end" + Chr(10) + "___groovy start" + Chr(10) + "___groovy end" + Chr(10) + "___htvm start" + Chr(10) + "___htvm end" + Chr(10) + "___inhtvm start" + Chr(10) + "___inhtvm end" + Chr(10) + "{" + Chr(10) + "}" + Chr(10) + "null" + Chr(10) + "true" + Chr(10) + "false" + Chr(10) + "void" + Chr(10) + "double" + Chr(10) + "char" + Chr(10) + "uint8" + Chr(10) + "uint16" + Chr(10) + "uint32" + Chr(10) + "uint64" + Chr(10) + "int" + Chr(10) + "str" + Chr(10) + "bool" + Chr(10) + "float" + Chr(10) + "int8" + Chr(10) + "int16" + Chr(10) + "int32" + Chr(10) + "int64" + Chr(10) + "if" + Chr(10) + "else if" + Chr(10) + "else" + Chr(10) + "while" + Chr(10) + "Loop" + Chr(10) + "Loop," + Chr(10) + "Loop, Parse," + Chr(10) + "continue" + Chr(10) + "break" + Chr(10) + "func" + Chr(10) + "await" + Chr(10) + "async" + Chr(10) + "throw" + Chr(10) + "ErrorMsg" + Chr(10) + "try" + Chr(10) + "catch" + Chr(10) + "finally" + Chr(10) + "return" + Chr(10) + ".add" + Chr(10) + ".pop" + Chr(10) + ".size" + Chr(10) + ".insert" + Chr(10) + ".rm" + Chr(10) + ".indexOf" + Chr(10) + "arr" + Chr(10) + "arr int" + Chr(10) + "arr str" + Chr(10) + "arr float" + Chr(10) + "arr bool" + Chr(10) + "var" + Chr(10) + "let" + Chr(10) + "const" + Chr(10) + "end" + Chr(10) + "global" + Chr(10) + ";" + Chr(10) + "'''1" + Chr(10) + "'''2" + Chr(10) + Chr(96) + Chr(10) + "main" + Chr(10) + "." + Chr(10) + "+" + Chr(10) + "-" + Chr(10) + "*" + Chr(10) + "/" + Chr(10) + "%" + Chr(10) + "**" + Chr(10) + "=" + Chr(10) + "===" + Chr(10) + "!=" + Chr(10) + Chr(62) + Chr(10) + Chr(60) + Chr(10) + Chr(62) + "=" + Chr(10) + Chr(60) + "=" + Chr(10) + "and" + Chr(10) + "or" + Chr(10) + "!" + Chr(10) + "&" + Chr(10) + "|" + Chr(10) + "^" + Chr(10) + "~" + Chr(10) + Chr(60) + Chr(60) + Chr(10) + Chr(62) + Chr(62) + Chr(10) + Chr(62) + Chr(62) + Chr(62) + Chr(10) + ":=" + Chr(10) + "+=" + Chr(10) + ".=" + Chr(10) + "-=" + Chr(10) + "*=" + Chr(10) + "/=" + Chr(10) + "%=" + Chr(10) + Chr(60) + Chr(60) + "=" + Chr(10) + Chr(62) + Chr(62) + "=" + Chr(10) + Chr(62) + Chr(62) + Chr(62) + "=" + Chr(10) + "&=" + Chr(10) + "|=" + Chr(10) + "^=" + Chr(10) + "?" + Chr(10) + ":" + Chr(10) + "++" + Chr(10) + "--" + Chr(10) + "0" + Chr(10) + "A_Index" + Chr(10) + "A_LoopField" + Chr(10) + "on" + Chr(10) + "off" + Chr(10) + "off" + Chr(10) + "on" + Chr(10) + "on" + Chr(10) + "off" + Chr(10) + "off" + Chr(10) + "off" + Chr(10) + "on" + Chr(10) + "off" + Chr(10) + "off" + Chr(10) + "on" + Chr(10) + "off" + Chr(10) + Chr(10);
FileDelete("HTVM-Instr-temp.txt");
FileDelete("HTVM-code-temp." + instr3);
FileAppend(Trim(instr0), "HTVM-Instr-temp.txt");
FileAppend(Trim(codeSnippet), "HTVM-code-temp." + instr3);
// Extract directory path from instrFile
directoryPath = GetDirectoryPath(instrFile);
instr1 = directoryPath + "/" + "HTVM-code-temp." + instr3;
instr2 = instrFile;
// instr3
instr4 = directoryPath + "/" + "HTVM-Instr-temp.txt";
print("Waiting for all code snippets to convert using the HTVM binary, so this might take a while...");
// Construct the command to run HTVM.exe or ./HTVM depending on the platform
std::string command;
#if defined(_WIN32)
command = "HTVM.exe \"" + instr1 + "\" \"" + instr4 + "\" \"" + instr3 + "\" \"" + instr2 + "\"";
#else
command = "./HTVM \"" + instr1 + "\" \"" + instr4+ "\" \"" + instr3 + "\" \"" + instr2 + "\"";
#endif
//std::cout << "Running command: " << command << std::endl; // Output the command for debugging
try {
// Run the command and capture the output
std::string output = RunCMD(command);
} catch (const std::runtime_error& e) {
std::cerr << "Error: " << e.what() << std::endl;
}
out = FileRead("HTVM-code-temp." + instr3);
FileDelete("HTVM-Instr-temp.txt");
FileDelete("HTVM-code-temp." + instr3);
}
std::string fixInstrFile = "";
if (HTVM_getLang_HTVM() == "js") {
str0 = "";
fixInstrFile = "";
std::vector<std::string> items2 = LoopParseFunc(instrFile, "\n", "\r");
for (size_t A_Index2 = 0; A_Index2 < items2.size(); A_Index2++) {
std::string A_LoopField2 = items2[A_Index2 - 0];
if (A_Index2 == 1) {
fixInstrFile += "htvm" + Chr(10);
} else {
fixInstrFile += Trim(A_LoopField2) + Chr(10);
}
}
instrFile = StringTrimRight(fixInstrFile, 1);
instr1 = Trim(codeSnippet);
instr4 = Trim(instrFile);
instr3 = "htvm";
instr2 = Trim(instr0);
}
return out;
}
void htvmSnippetLoad() {
int numTemp = 0;
if (htvmSnippetAlredy != 1) {
htvmSnippetAlredy = 1;
if (HTVM_getLang_HTVM() == "cpp") {
htvmSnippet000 = "";
htvmSnippet00 = "";
htvmSnippet0 = "";
htvmSnippet1 = "";
htvmSnippet2 = "";
htvmSnippet3 = "";
htvmSnippet4 = "";
htvmSnippet5 = "";
htvmSnippet6 = "";
htvmSnippet7 = "";
htvmSnippet8 = "";
htvmSnippet9 = "";
htvmSnippet10 = "";
htvmSnippet11 = "";
htvmSnippet12 = "";
htvmSnippet13 = "";
htvmSnippet14 = "";
htvmSnippet15 = "";
htvmSnippet16 = "";
htvmSnippet17 = "";
htvmSnippet18 = "";
htvmSnippet19 = "";
htvmSnippet20 = "";
htvmSnippet21 = "";
htvmSnippet22 = "";
htvmSnippet23 = "";
htvmSnippet24 = "";
htvmSnippet25 = "";
htvmSnippet26 = "";
htvmSnippet27 = "";
htvmSnippet28 = "";
htvmSnippet29 = "";
htvmSnippet30 = "";
htvmSnippet31 = "";
htvmSnippet32 = "";
htvmSnippet33 = "";
htvmSnippet34 = "";
htvmSnippet35 = "";
htvmSnippet36 = "";
htvmSnippet37 = "";
htvmSnippet38 = "";
htvmSnippet39 = "";
htvmSnippet40 = "";
htvmSnippet41 = "";
htvmSnippet42 = "";
htvmSnippet43 = "";
htvmSnippet44 = "";
htvmSnippet45 = "";
htvmSnippet46 = "";
htvmSnippet47 = "";
htvmSnippet48 = "";
htvmSnippet49 = "";
htvmSnippet50 = "";
htvmSnippet51 = "";
htvmSnippet52 = "";
htvmSnippet53 = "";
htvmSnippet54 = "";
htvmSnippet55 = "";
htvmSnippet56 = "";
htvmSnippet57 = "";
htvmSnippet58 = "";
htvmSnippet59 = "";
htvmSnippet60 = "";
htvmSnippet61 = "";
htvmSnippet62 = "";
htvmSnippet63 = "";
htvmSnippet64 = "";
htvmSnippet65 = "";
htvmSnippet66 = "";
htvmSnippet67 = "";
htvmSnippet68 = "";
htvmSnippet69 = "";
htvmSnippet70 = "";
htvmSnippet71 = "";
htvmSnippet72 = "";
htvmSnippet73 = "";
htvmSnippet74 = "";
htvmSnippet75 = "";
htvmSnippet76 = "";
htvmSnippet77 = "";
htvmSnippet78 = "";
htvmSnippet79 = "";
htvmSnippet80 = "";
htvmSnippet81 = "";
htvmSnippet82 = "";
htvmSnippet83 = "";
htvmSnippet84 = "";
htvmSnippet85 = "";
htvmSnippet86 = "";
htvmSnippet87 = "";
htvmSnippet88 = "";
htvmSnippet89 = "";
htvmSnippet90 = "";
htvmSnippet91 = "";
htvmSnippet92 = "";
htvmSnippet93 = "";
htvmSnippet94 = "";
htvmSnippet95 = "";
htvmSnippet96 = "";
htvmSnippet97 = "";
htvmSnippet98 = "";
htvmSnippet99 = "";
htvmSnippet100 = "";
htvmSnippet101 = "";
htvmSnippet102 = "";
if (isWindows()) {
htvmSnippet00 = FileRead("DOCUMENTATION Examples\\htvmSnippet0.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet1.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet2.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet3.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet4.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet5.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet6.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet7.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet8.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet9.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet10.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet11.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet12.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet13.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet14.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet15.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet16.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet17.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet18.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet19.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet20.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet21.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet22.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet23.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet24.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet25.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet26.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet27.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet28.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet29.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet30.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet31.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet32.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet33.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet34.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet35.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet36.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet37.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet38.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet39.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet40.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet41.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet42.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet43.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet44.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet45.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet46.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet47.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet48.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet49.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet50.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet51.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet52.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet53.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet54.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet55.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet56.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet57.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet58.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet59.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet60.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet61.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet62.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet63.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet64.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet65.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet66.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet67.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet68.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet69.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet70.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet71.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet72.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet73.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet74.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet75.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet76.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet77.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet78.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet79.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet80.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet81.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet82.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet83.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet84.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet85.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet86.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet87.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet88.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet89.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet90.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet91.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet92.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet93.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet94.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet95.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet96.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet97.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet98.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet99.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet100.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples\\htvmSnippet101.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
} else {
htvmSnippet00 = FileRead("DOCUMENTATION Examples/htvmSnippet0.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet1.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet2.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet3.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet4.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet5.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet6.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet7.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet8.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet9.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet10.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet11.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet12.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet13.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet14.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet15.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet16.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet17.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet18.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet19.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet20.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet21.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet22.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet23.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet24.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet25.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet26.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet27.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet28.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet29.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet30.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet31.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet32.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet33.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet34.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet35.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet36.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet37.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet38.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet39.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet40.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet41.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet42.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet43.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet44.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet45.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet46.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet47.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet48.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet49.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet50.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet51.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet52.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet53.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet54.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet55.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet56.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet57.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet58.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet59.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet60.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet61.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet62.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet63.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet64.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet65.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet66.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet67.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet68.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet69.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet70.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet71.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet72.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet73.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet74.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet75.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet76.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet77.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet78.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet79.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet80.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet81.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet82.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet83.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet84.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet85.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet86.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet87.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet88.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet89.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet90.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet91.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet92.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet93.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet94.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet95.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet96.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet97.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet98.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet99.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet100.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
htvmSnippet00 += FileRead("DOCUMENTATION Examples/htvmSnippet101.htvm") + Chr(10) + "HTVMv2-help-DOC-get-ThisOnly-For-DOC-GEN-HTVMv2" + Chr(10);
}
htvmSnippet00 = convertSnipetToAnotherSyntax(DOCS_param1, htvmSnippet00);
numTemp = 0;
htvmSnippet000 = "";
std::vector<std::string> items3 = LoopParseFunc(htvmSnippet00, "\n", "\r");
for (size_t A_Index3 = 0; A_Index3 < items3.size(); A_Index3++) {
std::string A_LoopField3 = items3[A_Index3 - 0];
if (numTemp == 1 && Trim(htvmSnippet0) == "") {
htvmSnippet0 = StringTrimRight(htvmSnippet000, 1);
htvmSnippet0 += Chr(10);
htvmSnippet000 = "";
}
else if (numTemp == 2 && Trim(htvmSnippet1) == "") {
htvmSnippet1 = StringTrimRight(htvmSnippet000, 1);
htvmSnippet1 += Chr(10);
htvmSnippet000 = "";
}
else if (numTemp == 3 && Trim(htvmSnippet2) == "") {
htvmSnippet2 = StringTrimRight(htvmSnippet000, 1);
htvmSnippet2 += Chr(10);
htvmSnippet000 = "";
}
else if (numTemp == 4 && Trim(htvmSnippet3) == "") {
htvmSnippet3 = StringTrimRight(htvmSnippet000, 1);
htvmSnippet3 += Chr(10);
htvmSnippet000 = "";
}
else if (numTemp == 5 && Trim(htvmSnippet4) == "") {
htvmSnippet4 = StringTrimRight(htvmSnippet000, 1);
htvmSnippet4 += Chr(10);
htvmSnippet000 = "";
}
else if (numTemp == 6 && Trim(htvmSnippet5) == "") {
htvmSnippet5 = StringTrimRight(htvmSnippet000, 1);
htvmSnippet5 += Chr(10);
htvmSnippet000 = "";
}
else if (numTemp == 7 && Trim(htvmSnippet6) == "") {
htvmSnippet6 = StringTrimRight(htvmSnippet000, 1);
htvmSnippet6 += Chr(10);
htvmSnippet000 = "";
}
else if (numTemp == 8 && Trim(htvmSnippet7) == "") {
htvmSnippet7 = StringTrimRight(htvmSnippet000, 1);
htvmSnippet7 += Chr(10);
htvmSnippet000 = "";
}
else if (numTemp == 9 && Trim(htvmSnippet8) == "") {
htvmSnippet8 = StringTrimRight(htvmSnippet000, 1);