Exemplo n.º 1
0
 static public void Init()
 {
     InitDone = true;
     MKL.Lic("Stach - KittyViewer.cs", "GNU General Public License 3");
     MKL.Version("Stach - KittyViewer.cs", "21.03.09");
     Debug.WriteLine("Init Kitty Source View Drivers");
     KittyHigh.Init();
     new KittyBlitzMax();
     new KittyHighBASIC();
     new KittyHighBlitzBasic();
     new KittyHighBrainFuck();
     new KittyHighC();
     new KittyHighCobra();
     new KittyHighCS();
     new KittyHighGINI();
     new KittyHighGo();
     new KittyHighHtml();
     new KittyHighINI();
     new KittyHighJava();
     new KittyHighJavaScript();
     new KittyHighJSON();
     new KittyHighLua();
     new KittyHighNeil();
     new KittyHighNIL();
     new KittyHighPascal();
     new KittyHighPython();
     new KittyHighSASKIA();
     new KittyHighScyndi();
     new KittyHighVB();
     new KittyHighWhiteSpace();
     new KittyHighXml();
     //new KittyNiks();
 }
Exemplo n.º 2
0
        public override void Run(FlagParse fp)
        {
            if (fp.Args.Length == 1)
            {
                QCol.Green("Show content of an entry as text on the console:\n\n");
                QCol.Yellow("-b              "); QCol.Cyan("When not set the ^Z character will be seen as EOF (DOS setting still working in Windows). When -b is set, everything will always be shown\n");
                QCol.Yellow("-nsh            "); QCol.Cyan("When set JCR6 will NOT try to syntax highlight");
                QCol.Yellow("-nln            "); QCol.Cyan("When set line numbers will not be displayed");
                return;
            }
            KittyHigh.Init();
            new KittyHighCS();
            new KittyHighNIL();
            new KittyHighLua();
            new KittyHighGINI();
            new KittyBlitzMax();
            new KittyHighC();
            new KittyHighPascal();
            new KittyHighBrainFuck();
            new KittyHighGo();
            new KittyHighBlitzBasic();
            new KittyHighSASKIA();
            new KittyHighPython();
            new KittyHighHtml();
            new KittyHighCobra();
            new KittyHighJava();
            new KittyHighJavaScript();
            new KittyHighNeil();
            new KittyHighVB();
            new KittyHighWhiteSpace();
            new KittyHighXml();
            var jcr = JCR6.Dir(fp.Args[1]);

            if (jcr == null)
            {
                QCol.QuickError(JCR6.JERROR);
                return;
            }
            if (fp.Args.Length == 2)
            {
                foreach (TJCREntry ent in jcr.Entries.Values)
                {
                    Show(jcr, ent.Entry, fp);
                }
            }
            else
            {
                for (int i = 2; i < fp.Args.Length; i++)
                {
                    Show(jcr, fp.Args[i], fp);
                }
            }
        }