<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Crayon Syntax Highlighter &#8211; 天地一沙鸥</title>
	<atom:link href="https://haoluobo.com/tag/crayon-syntax-highlighter/feed/" rel="self" type="application/rss+xml" />
	<link>https://haoluobo.com</link>
	<description>to be continue....</description>
	<lastBuildDate>Thu, 16 Dec 2021 03:35:11 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>替换博客的代码高亮插件为“Crayon Syntax Highlighter”</title>
		<link>https://haoluobo.com/2012/07/crayon-syntax-highlighter/</link>
					<comments>https://haoluobo.com/2012/07/crayon-syntax-highlighter/#comments</comments>
		
		<dc:creator><![CDATA[vicalloy]]></dc:creator>
		<pubDate>Fri, 06 Jul 2012 02:11:00 +0000</pubDate>
				<category><![CDATA[vicalloy的庄家]]></category>
		<category><![CDATA[Crayon Syntax Highlighter]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">/?p=10593</guid>

					<description><![CDATA[此前一直对博客的代码高亮插件不是很满意。以前用的插件，默认配色方案不是太美观，而且配色方案的修改还不是一件容易 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>此前一直对博客的代码高亮插件不是很满意。以前用的插件，默认配色方案不是太美观，而且配色方案的修改还不是一件容易的事。<br>将代码高亮插件换到 <a href="http://ak.net84.net/projects/crayon-syntax-highlighter/">Crayon Syntax Highlighter</a> 。现在的这个插件还是让我比较满意的。</p>



<h3 class="wp-block-heading">插件演示</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: python; title: ; notranslate">
# -*- coding: UTF-8 -*-
import os
from contextlib import contextmanager as __ctxmgr
from fabric.api import *
from fabric.decorators import runs_once
import fabsettings as cfg
#host settings
env.hosts = &#x5B;&#039;vicalloy@jstwind.com&#039;]
env.password = cfg.PASSWORD
#env.passwords = fabsettings.PASSWORDS
#custom settings
env.deploy_dir = &#039;/home/vicalloy/webapps/jstwind/timeline-site&#039;
env.activate = &#039;source %s&#039; % os.path.join(env.deploy_dir, &#039;env/bin/activate&#039;)
env.mg = &#039;python %s&#039; % os.path.join(env.deploy_dir, &#039;sites&#039;, &#039;manage.py &#039;)
@__ctxmgr
def __virtualenv():
    with cd(env.deploy_dir):
        with prefix(env.activate):
            yield
def reload():
    wsgi = os.path.join(env.deploy_dir, &#039;deploy&#039;, &#039;dj_scaffold.wsgi&#039;)
    run(&quot;touch %s&quot; % wsgi)
def update():
    with __virtualenv():
        run(&quot;git pull&quot;)
        run(&#039;%s syncdb&#039; % env.mg)
        run(&#039;%s migrate&#039; % env.mg)
        run(&#039;%s compress --force&#039; % env.mg)
        reload()

</pre></div>]]></content:encoded>
					
					<wfw:commentRss>https://haoluobo.com/2012/07/crayon-syntax-highlighter/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
