Tag: 输出
HTML Formatter通过PHP将代码格式化输出
似乎没找到NGINX APACHE模块实现将代码格式化输出,在github上找到一个PHP实现的。HTML FormatterHTML Formatter re-indents HTML. This is not clean or safe at the moment, but I couldn't ...
awk输出匹配行的前一行,后一行的方法
awk输出匹配行的前一行,后一行的方法# cat test1a2a34a5678a9提取a前面一列# cat test|awk '/a/{print a;}{a=$0}'1248提取a后面一列# cat test|awk '/a/{getline;print}'2359 ...
一次性分别循环输出wordpress几个分类的最新文章
<?php$loop_cate_id = array(1,3,8); //指定要输出的分类id$num = 10; //指定每次循环输出的文章篇数?><div class="main-list clearfix"> <?php foreach($ ...