2011년 10월 13일 목요일

코드 테스트


코드 예
static void Main(string[] args)
{
    _path = AppDomain.CurrentDomain.BaseDirectory;
    if (!File.Exists(Path.Combine(_path, RedisServer)))
        Exit("Couldn`t find " + RedisServer);

    if (!File.Exists(Path.Combine(_path, RedisCLI)))
        Exit("Couldn`t find " + RedisCLI);

    if (Environment.UserInteractive)
    {
        SetConsoleCtrlHandler(ConsoleCtrlCheck, true);
        //Console.CancelKeyPress += (sender, eventArgs) => StopRedis();
        StartRedis(args.Length == 1 ? args[0] : null);
    }
    else
        Run(new Program());
}

이건데요… 제대로 되나요?
이제 제대로 됩니다. Syntax Highlight 땜시 항상 글 쓰기 힘들었는데, 이제 좀 편해지려나?

댓글 2개:

Unknown :

크롬인데 제대로 나옵니다. 항상 글 감사하게 보고 있습니다. 화이륑~

Unknown :

감사합니다.
이 놈의 코드 쓰는게, 이미지 덤프 뜨는 것보다 더 힘드네요^^