Skip to content

Instantly share code, notes, and snippets.

View yihuajack's full-sized avatar
💭
Studying

Liu Yihua yihuajack

💭
Studying
View GitHub Profile
@yihuajack
yihuajack / lststyle-VS2017.sty
Created September 22, 2020 05:07 — forked from pezcode/lststyle-VS2017.sty
Visual Studio 2017 C++ color scheme for the LaTeX listing package
% VS2017 C++ color scheme
\definecolor{clr-background}{RGB}{255,255,255}
\definecolor{clr-text}{RGB}{0,0,0}
\definecolor{clr-string}{RGB}{163,21,21}
\definecolor{clr-namespace}{RGB}{0,0,0}
\definecolor{clr-preprocessor}{RGB}{128,128,128}
\definecolor{clr-keyword}{RGB}{0,0,255}
\definecolor{clr-type}{RGB}{43,145,175}
\definecolor{clr-variable}{RGB}{0,0,0}
\definecolor{clr-constant}{RGB}{111,0,138} % macro color
@yihuajack
yihuajack / mips.sty
Last active September 18, 2020 07:05 — forked from walkie/mips.sty
MIPS Assembly language definition for the LaTeX listings package.
% MIPS Assembly language definition for the LaTeX `listings' package
%
% Author: Eric Walkingshaw <eric@walkingshaw.net>, Yihua Liu <yihuajack@live.cn>
%
% This code is in the public domain.
%
\ProvidesPackage{mips}
\RequirePackage{listings}
\lstdefinelanguage[mips]{Assembler}{%
alsoletter={.\$},