public MainWindow() { try { InitializeComponent(); MKL.Version("Stach - MainWindow.xaml.cs", "22.05.21"); MKL.Lic("Stach - MainWindow.xaml.cs", "GNU General Public License 3"); Title = $"Stach - (c) {MKL.CYear(2020)} Jeroen P. Broks"; ExampleSwap.Text = Core.Config[Platform, "ExampleSwap"]; foreach (string ad in Dirry.AltDriveList) { List_System.Items.Add(ad); } var startd = Directory.GetCurrentDirectory().Replace('\\', '/'); RegisterEntryFields(); Core.IN_Resource = false; Core.CDirectory = startd; UpdateDirBox(); RenewUsed(); RenewFavs(); ViewNothing(); } catch (Exception e) { #if DEBUG Confirm.Annoy($"{e}\n\n{e.StackTrace}\n\nI will try to continue, but expect things NOT to go so well!", "Start up error!", System.Windows.Forms.MessageBoxIcon.Error); #else Confirm.Annoy($"{e.Message}\n\nI will try to continue, but expect things NOT to go so well!", "Start up error!", System.Windows.Forms.MessageBoxIcon.Error); #endif } finally { AutoConfigUpdate = true; } }
void Header() { QCol.Yellow("Alternate Directory\t"); QCol.Cyan($"Version {MKL.Newest}\n"); QCol.Magenta($"Coded and copyrighted {MKL.CYear(2019)} by: Jeroen P. Broks\n"); QCol.Green("Licensed and released under terms of the GPL 3\n\n"); }
static void Main(string[] args) { Source.Hello(); Compile.Hello(); Dirry.InitAltDrives(); Instruction.Init(); MKL.Version("Wendicka Project - WASM_Main.cs", "20.03.01"); MKL.Lic("Wendicka Project - WASM_Main.cs", "GNU General Public License 3"); Console.WriteLine($"Wendicka Assembler {MKL.Newest} - (c) {MKL.CYear(2020)} Jeroen P. Broks\n"); if (args.Length == 0) { Console.WriteLine("Usage: WASM [options] <File>"); TrickyDebug.AttachWait(); return; } var parse = new FlagParse(args); parse.CrBool("s", false); parse.Parse(); Silence = parse.GetBool("s"); foreach (string f in parse.Args) { Compile.Go(Dirry.AD(f).Replace("\\", "/")); } Console.WriteLine($"\tErrors: {Errors}; Warnings: {Warnings}"); TrickyDebug.AttachWait(); }
static void Head() { QCol.Yellow("Quick Neil "); QCol.Cyan($"{MKL.Newest}\n"); QCol.Green($"(c) Jeroen P. Broks {MKL.CYear(2020)}\n"); QCol.Magenta("Released under the terms of the GPL3\n\n"); }
public MainWindow() { MKL.Version("TeddyBear - MainWindow.xaml.cs", "19.03.16"); MKL.Lic("TeddyBear - MainWindow.xaml.cs", "GNU General Public License 3"); InitializeComponent(); MessageBox.Show("This wizard will create only a very simplistic project. If you want TeddyBear to have more power than this wizard can provide, please seek out the Wiki pages on GitHub on what you all can do", "TeddyWizard"); copyright.Content = $"(c) {MKL.CYear(2019)} Jeroen P. Broks, Licensed under the terms of the GPL3"; }
static void Heading() { MKL.Version("QuickNIL - QuickNIL.cs", "19.08.31"); MKL.Lic("QuickNIL - QuickNIL.cs", "GNU General Public License 3"); Console.WriteLine($"QuickNIL v{MKL.Newest}"); Console.WriteLine($"(c) Jeroen P. Broks {MKL.CYear(2019)}"); Console.WriteLine($"Released under the terms of the GPL3\n"); }
static void Head() { QCol.Yellow("NJCR "); QCol.Cyan($"{MKL.Newest}"); #if DEBUG QCol.Red("\tDEBUG BUILD!"); #endif Console.WriteLine(); QCol.Magenta($"(c) Copyright Jeroen P. Broks {MKL.CYear(2019)}\n"); QCol.Green("Released under the terms of the GPL3\n\n"); Debug.WriteLine(Directory.GetCurrentDirectory()); }
void main(string[] args) { MKL.Version("TeddyBear - TeddyXPort.cs", "19.04.05"); MKL.Lic("TeddyBear - TeddyXPort.cs", "GNU General Public License 3"); cwrite(ConsoleColor.Yellow, "TeddyBear Exporter "); cwriteln(ConsoleColor.Cyan, "\tCoded by: Jeroen P. Broks"); cwriteln(ConsoleColor.Magenta, $"(c) {MKL.CYear(2019)} Jeroen P. Broks, Released under the terms of the GPL 3\n"); XPort.init(); JCR6_lzma.Init(); JCR6_zlib.Init(); LoadMainConfig(); SetupProject(args); CreateTo(); TranslateMaps(); }
static void Main(string[] args) { // Header QCol.Red("Kitty "); QCol.Magenta("Coded by: Tricky\n"); QCol.Yellow($"(c) {MKL.CYear(2019)} Jeroen P. Broks\n\n"); // Init Dirry.InitAltDrives(); KittyHigh.Init(); new KittyHighCS(); new KittyHighNIL(); new KittyHighLua(); new KittyHighGINI(); new KittyHighScyndi(); new KittyBlitzMax(); new KittyHighC(); new KittyHighPascal(); new KittyHighBrainFuck(); new KittyHighGo(); new KittyHighBlitzBasic(); new KittyHighSASKIA(); new KittyHighPython(); new KittyHighJavaScript(); new KittyHighWhiteSpace(); new KittyHighBASIC(); new KittyHighJava(); new KittyHighINI(); new KittyHighVB(); new KittyHighCobra(); new KittyHighHtml(); new KittyHighXml(); new KittyHighNeil(); var slin = true; if (args.Length == 0) { QCol.Green("Kitty is a simple program which will help you view source files in syntax highlight\n"); QCol.Magenta("Usage:\t"); QCol.Yellow("Kitty "); QCol.Cyan("<switches> "); QCol.White("<files>"); QCol.Green("["); QCol.Cyan("<switches> "); QCol.White("<files>"); QCol.Green("..]"); Console.WriteLine("\n\n"); QCol.Yellow("Please note that switches affect all files defined after it not those that come before it. This allows you to configure each file shown\n\n"); QCol.Cyan("-ln "); QCol.Yellow("Toggle line numbers on/off (default is on)\n"); QCol.Cyan("-nolinenumbers "); QCol.Yellow("Turn line numbers off\n"); QCol.Cyan("-Showlinenumbers "); QCol.Yellow("Turn line numbers on\n"); QCol.Cyan("-re "); QCol.Yellow("Toggle searching by RegEx (this allows limited support for Wild Cards and more nice things)\n"); QCol.Cyan("-p, -more "); QCol.Yellow("Turn \"more\" mode on/off. (Read note below)\n"); QCol.Cyan("-support "); QCol.Yellow("Show a list of all supported file formats\n"); QCol.Red("\n\nThe \"more\" mode!\n"); QCol.Yellow("Does not entirely work the same as the 'more' utility, but has the same primary function!\n"); QCol.Yellow("When the \"more\" bar appears you can hit space to show the next line, Enter/Return to show the entire next page and escape to turn the more mode off\n"); QCol.White("\n\nKitty can be used as as CLI tool, but the integry has been made to be included in your own projects, and has been released under the terms of the zlib license\n\n"); return; } // Go for it QCol.Doing("Called from:", System.IO.Directory.GetCurrentDirectory()); void ViewFile(string a) { try { var arg = Dirry.AD(a).Replace("\\", "/"); QCol.Doing("Reading", arg); KittyHigh.PageBreak(); var src = QuickStream.LoadString(arg); var eoln = qstr.EOLNType(arg); // QCol.Doing("EOLN", eoln); // didn't work anyway //QCol.OriCol(); var ext = qstr.ExtractExt(arg).ToLower(); KittyHigh Viewer = KittyHigh.Langs["OTHER"]; if (KittyHigh.Langs.ContainsKey(ext)) { Viewer = KittyHigh.Langs[ext]; } QCol.Doing("Type", Viewer.Language); KittyHigh.PageBreak(); KittyHigh.WriteLine(); Viewer.Show(src, slin); } catch (Exception ex) { QCol.QuickError($"{ex.Message}\n"); #if DEBUG QCol.Magenta($"{ex.StackTrace}\n\n"); #endif } } var aregex = false; foreach (string a in args) { if (qstr.Prefixed(a, "-")) { switch (a.ToLower()) { case "-ln": slin = !slin; break; case "-nolinenumbers": slin = false; break; case "-showlinenumbers": slin = true; break; case "-p": case "-more": KittyHigh.BrkLines = !KittyHigh.BrkLines; break; case "-re": aregex = !aregex; break; case "-support": foreach (string ext in KittyHigh.Langs.Keys) { QCol.Cyan(qstr.Left($"{ext} ", 20)); QCol.Yellow($"{KittyHigh.Langs[ext].Language}\n"); } break; default: QCol.QuickError($"Unknown switch: {a}"); break; } } else if (aregex) { QCol.Doing("Searching for RegEx", a); var rgxl = RegExTree.Tree(a); foreach (string af in rgxl) { ViewFile(af); } } else { ViewFile(a); } } TrickyDebug.AttachWait(); }
static void Head() { Console.WriteLine($"Wendicka Runtime QCLI, version {MKL.Newest}"); Console.WriteLine("Coded by Jeroen P. Broks!"); Console.WriteLine($"(c) {MKL.CYear(2020)} Jeroen P. Broks\n"); }