• Emacs cnblogs 代码着色


    Emacs cnblogs 代码着色

    Emacs cnblogs 代码着色

    1 在org-mode中增加一些html标签来适应cnblogs代码着色

    1.1 cpp

    
      int main(int argc, char *argv[])
      {
        printf("hello world.\n");
    
        return 0;
      }
    
      

    1.2 bash

    
        #!/bin/bash
        X=3
        Y=4
        empty_string=""
        if [ $X -lt $Y ]  # is $X less than $Y ? 
        then
          echo "\$X=${X}, which is smaller than \$Y=${Y}"
        fi
         
        if [ -n "$empty_string" ]; then
          echo "empty string is non_empty"
        fi
         
        if [ -e "${HOME}/.fvwmrc" ]; then             # test to see if ~/.fvwmrc exists
          echo "you have a .fvwmrc file"
          if [ -L "${HOME}/.fvwmrc" ]; then       # is it a symlink ?  
              echo "it's a symbolic link"
          elif [ -f "${HOME}/.fvwmrc" ]; then     # is it a regular file ?
              echo "it's a regular file"
          fi
        else
          echo "you have no .fvwmrc file"
        fi
    
      
    
    #!/bin/bash
    if [ -n "$hello" ]; then
      echo "hello is not null."
    fi
    
    

    Date: 2012-12-31 Mon

    Author: liweilijie

    Org version 7.9.2 with Emacs version 23

    Validate XHTML 1.0
  • 相关阅读:
    2016.10.15先占坑
    2016.10.11先占坑
    2016.10.13先占坑
    2016.10.7先占坑
    main()里面为什么要放String[] args
    对于一个给定的正整数 n ,请你找出一共有多少种方式使 n 表示为若干个连续正整数的和,要求至少包括两个正整数。
    求两个数的最大公约数的三种算法总结
    C++
    Dev-c5.11的使用
    客户端和服务器端的交互(未完待续)
  • 原文地址:https://www.cnblogs.com/liweilijie/p/2840469.html
Copyright © 2020-2023  润新知