我一直在用 Jekyll 构建一个小型个人网站,而 Rouge 并没有突出我的语法。谁能帮忙解释一下为什么?
_config.yml
:
title: My Name
author: My Name
url: "http://myname.com"
baseurl: ""
permalink: /projects/:title
markdown: kramdown
higlighter: rouge
tracking_id: Google Tracking ID
sass:
style: compressed
sass_dir: _sass
有语法高亮问题的页面:
---
layout: post
title: Python for...Wine Analysis?
blurb: tbd
tags:
- machine learning
- python
- pandas
- scikit-learn
---
## Imports
```python
import pandas as pd
from pandas import DataFrame, Series
from patsy import dmatrices
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
from sklearn import metrics
from sklearn import tree
import statsmodels.api as sm
import os
%pylab inline
```
我遵循了几个教程,但似乎没有任何帮助。这是它最终的样子: