Пример #1
0
        public static object HighlightFile(string fileName, bool returnHighlighted)
        {
            using (PhpStream stream = PhpStream.Open(fileName, "rt"))
            {
                if (stream == null)
                {
                    return(false);
                }

                string source = stream.ReadStringContents(-1);
                Debug.Assert(source != null);

                return(HighlightString(source, returnHighlighted));
            }
        }