\hypertarget{group__Syntax}{}\section{Parsing and marking up syntax in files}
\label{group__Syntax}\index{Parsing and marking up syntax in files@{Parsing and marking up syntax in files}}


Syntax highlighting helper functions.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Elm\+\_\+\+Code\+\_\+\+Syntax $\ast$ \mbox{\hyperlink{group__Syntax_ga2865a2d1f724b0d4ec45fa6ec7afef12}{elm\+\_\+code\+\_\+syntax\+\_\+for\+\_\+mime\+\_\+get}} (const char $\ast$mime)
\begin{DoxyCompactList}\small\item\em Lookup a syntax definition from a mime type. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Syntax_ga904647c001edc5dabb8137b1fc598c82}{elm\+\_\+code\+\_\+syntax\+\_\+parse\+\_\+line}} (Elm\+\_\+\+Code\+\_\+\+Syntax $\ast$syntax, \mbox{\hyperlink{struct__Elm__Code__Line}{Elm\+\_\+\+Code\+\_\+\+Line}} $\ast$line)
\begin{DoxyCompactList}\small\item\em Parse a line and apply the syntax definition by inserting Elm\+\_\+\+Code\+\_\+\+Token into the line. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Syntax_ga3d691719e5c1d6b2ffeb996647c1b2ad}{elm\+\_\+code\+\_\+syntax\+\_\+parse\+\_\+file}} (Elm\+\_\+\+Code\+\_\+\+Syntax $\ast$syntax, \mbox{\hyperlink{struct__Elm__Code__File}{Elm\+\_\+\+Code\+\_\+\+File}} $\ast$file)
\begin{DoxyCompactList}\small\item\em Parse a file and apply the syntax definition one line at a time. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Syntax highlighting helper functions. 

Syntax functions for adding syntax highlighting to elm code. 

\subsection{Function Documentation}
\mbox{\Hypertarget{group__Syntax_ga2865a2d1f724b0d4ec45fa6ec7afef12}\label{group__Syntax_ga2865a2d1f724b0d4ec45fa6ec7afef12}} 
\index{Parsing and marking up syntax in files@{Parsing and marking up syntax in files}!elm\+\_\+code\+\_\+syntax\+\_\+for\+\_\+mime\+\_\+get@{elm\+\_\+code\+\_\+syntax\+\_\+for\+\_\+mime\+\_\+get}}
\index{elm\+\_\+code\+\_\+syntax\+\_\+for\+\_\+mime\+\_\+get@{elm\+\_\+code\+\_\+syntax\+\_\+for\+\_\+mime\+\_\+get}!Parsing and marking up syntax in files@{Parsing and marking up syntax in files}}
\subsubsection{\texorpdfstring{elm\+\_\+code\+\_\+syntax\+\_\+for\+\_\+mime\+\_\+get()}{elm\_code\_syntax\_for\_mime\_get()}}
{\footnotesize\ttfamily Elm\+\_\+\+Code\+\_\+\+Syntax$\ast$ elm\+\_\+code\+\_\+syntax\+\_\+for\+\_\+mime\+\_\+get (\begin{DoxyParamCaption}\item[{const char $\ast$}]{mime }\end{DoxyParamCaption})}



Lookup a syntax definition from a mime type. 

If there is no syntax known N\+U\+LL will be returned.


\begin{DoxyParams}{Parameters}
{\em mime} & The mime type to be looked up for a matching syntax definition \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A syntax definition, if one is found, or N\+U\+LL 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Syntax_ga904647c001edc5dabb8137b1fc598c82}\label{group__Syntax_ga904647c001edc5dabb8137b1fc598c82}} 
\index{Parsing and marking up syntax in files@{Parsing and marking up syntax in files}!elm\+\_\+code\+\_\+syntax\+\_\+parse\+\_\+line@{elm\+\_\+code\+\_\+syntax\+\_\+parse\+\_\+line}}
\index{elm\+\_\+code\+\_\+syntax\+\_\+parse\+\_\+line@{elm\+\_\+code\+\_\+syntax\+\_\+parse\+\_\+line}!Parsing and marking up syntax in files@{Parsing and marking up syntax in files}}
\subsubsection{\texorpdfstring{elm\+\_\+code\+\_\+syntax\+\_\+parse\+\_\+line()}{elm\_code\_syntax\_parse\_line()}}
{\footnotesize\ttfamily void elm\+\_\+code\+\_\+syntax\+\_\+parse\+\_\+line (\begin{DoxyParamCaption}\item[{Elm\+\_\+\+Code\+\_\+\+Syntax $\ast$}]{syntax,  }\item[{\mbox{\hyperlink{struct__Elm__Code__Line}{Elm\+\_\+\+Code\+\_\+\+Line}} $\ast$}]{line }\end{DoxyParamCaption})}



Parse a line and apply the syntax definition by inserting Elm\+\_\+\+Code\+\_\+\+Token into the line. 


\begin{DoxyParams}{Parameters}
{\em syntax} & The syntax definition to use (from elm\+\_\+code\+\_\+syntax\+\_\+for\+\_\+mime\+\_\+get) \\
\hline
{\em line} & The line that contains the content to parse and will receive the tokens \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Syntax_ga3d691719e5c1d6b2ffeb996647c1b2ad}\label{group__Syntax_ga3d691719e5c1d6b2ffeb996647c1b2ad}} 
\index{Parsing and marking up syntax in files@{Parsing and marking up syntax in files}!elm\+\_\+code\+\_\+syntax\+\_\+parse\+\_\+file@{elm\+\_\+code\+\_\+syntax\+\_\+parse\+\_\+file}}
\index{elm\+\_\+code\+\_\+syntax\+\_\+parse\+\_\+file@{elm\+\_\+code\+\_\+syntax\+\_\+parse\+\_\+file}!Parsing and marking up syntax in files@{Parsing and marking up syntax in files}}
\subsubsection{\texorpdfstring{elm\+\_\+code\+\_\+syntax\+\_\+parse\+\_\+file()}{elm\_code\_syntax\_parse\_file()}}
{\footnotesize\ttfamily void elm\+\_\+code\+\_\+syntax\+\_\+parse\+\_\+file (\begin{DoxyParamCaption}\item[{Elm\+\_\+\+Code\+\_\+\+Syntax $\ast$}]{syntax,  }\item[{\mbox{\hyperlink{struct__Elm__Code__File}{Elm\+\_\+\+Code\+\_\+\+File}} $\ast$}]{file }\end{DoxyParamCaption})}



Parse a file and apply the syntax definition one line at a time. 


\begin{DoxyParams}{Parameters}
{\em syntax} & The syntax definition to use (from elm\+\_\+code\+\_\+syntax\+\_\+for\+\_\+mime\+\_\+get) \\
\hline
{\em file} & The file to parse -\/ each line in the file will be processed \\
\hline
\end{DoxyParams}
