Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 2.48 KB | None | 0 0
  1. \lstdefinestyle{sql}{ %
  2.   literate={á}{{\'a}}1 {ã}{{\~a}}1 {é}{{\'e}}1,
  3.  backgroundcolor=\color{white},  % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}
  4.   basicstyle=\footnotesize\ttfamily,        % the size of the fonts that are used for the code
  5.   breakatwhitespace=false,         % sets if automatic breaks should only happen at whitespace
  6.   breaklines=true,                 % sets automatic line breaking
  7.   captionpos=t,                    % sets the caption-position to bottom
  8.   commentstyle=\color{greencomments}\itshape,    % comment style
  9.   deletekeywords={...},            % if you want to delete keywords from the given language
  10.   emphstyle=\itshape,
  11.   escapeinside={\%*}{*)},          % if you want to add LaTeX within your code
  12.   extendedchars=true,              % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8
  13.   frame=tb,                    % adds a frame around the code
  14.   keepspaces=true,                 % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)
  15.   keywordstyle=\color{bluekeywords}\lstuppercase\bfseries,       % keyword style
  16.   language=SQL,                    % the language of the code
  17.   otherkeywords={LOOP,:NEW,:OLD,BEGIN, DECLARE , RAW, REGEXP_LIKE, RETURN, FOR EACH ROW},             % if you want to add more keywords to the set
  18.   sensitive=false,
  19.   numbers=left,                    % where to put the line-numbers; possible values are (none, left, right)
  20.   numbersep=5pt,                   % how far the line-numbers are from the code
  21.   numberstyle=\ttfamily\footnotesize\color{black!60}, % the style that is used for the line-numbers
  22.   rulecolor=\color{black},         % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))
  23.   showspaces=false,                % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
  24.   showstringspaces=true,          % underline spaces within strings only
  25.   showtabs=false,                  % show tabs within strings adding particular underscores
  26.   stepnumber=1,                    % the step between two line-numbers. If it's 1, each line will be numbered
  27.   stringstyle=\color{redstrings},%\itshape,     % string literal style
  28.   tabsize=2,                       % sets default tabsize to 2 spaces
  29.   title=\lstname                   % show the filename of files included with \lstinputlisting; also try caption instead of title
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement