分类目录归档:教程

WordPress中Pre标签自动换行

WordPress pre自动换行默认只支持IE浏览器,要兼容Opera/Firefox/Chrome,可进行如下操作

主题——>自定义——>额外CSS

添加如下内容

pre {    
        font-family: "Courier 10 Pitch", Courier, monospace;
        /* styles to make preformatted text wrap */
        white-space: pre-wrap;       /* css-3 */
        white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
        white-space: -pre-wrap;      /* Opera 4-6 */
        white-space: -o-pre-wrap;    /* Opera 7 */
        word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

长代码换行显示测试

sudo apt-get -y install ruby2.1 ruby-switch ruby2.1-dev ri2.1 libruby2.1 libssl-dev zlib1g-dev
sudo ruby-switch --set ruby2.1

【转载】HowTo Install Redmine 3.0.x on Ubuntu 14.04 with Apache2, Phusion Passenger, MySQL, Subversion and Git (Gitolite)

文章原地址

https://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_30x_on_Ubuntu_1404_with_Apache2_Phusion_Passenger_MySQL_Subversion_and_Git_(Gitolite)

参考此文档安装Redmine 3.x,重装了N次,一直未成功。结合另一个2.x的安装文档,在自己摸索下终于安装成功。记录一下安装步骤,安装过程中去掉了教程里Git的安装。

参考另一个2.x的安装教程

https://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_25x_on_Ubuntu_1404_with_Apache2_Phusion_Passenger_MySQL_and_Subversion

继续阅读