\hypertarget{group__Syntax}{}\doxysection{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.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Elm\+\_\+\+Code\+\_\+\+Syntax $\ast$ \mbox{\hyperlink{group__Syntax_gaf006df6946a90e4a3cca907c86e83444}{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}


\doxysubsection{Detailed Description}
Syntax highlighting helper functions. 

Syntax functions for adding syntax highlighting to elm code. 

\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Syntax_gaf006df6946a90e4a3cca907c86e83444}\label{group__Syntax_gaf006df6946a90e4a3cca907c86e83444}} 
\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}}
\doxysubsubsection{\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 NULL 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 NULL 
\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}}
\doxysubsubsection{\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}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\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}}
\doxysubsubsection{\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}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}.

