How to fix code highlight(python)
Code highlight Failure (Python)
- template doesn’t support python code highlight
- Install ruby and plug-in(jekyll-pygments)
steps:
- Install ruby
sudo apt install ruby-bundler # sudo snap install ruby --classic # sudo apt-get install ruby-dev sudo bundle install sudo gem update bundler # dependency
- Check gem(jekyll-pygments) is installed already
gem list
- Go to project file and generate Gemfile. File this exists, add lines like below
source "https://rubygems.org" gem "jekyll" gem "jekyll-pygments" # jekyll-pygments 플러그인 추가
- Go to project file and install plug-in
bundle install
- Result
a = 1
print(a)
a=1
a=1
<div>
a = 1
</div>