%Process with pdftex or luatex; plain or Latex.

\ifdefined\AtBeginDocument %we are in Latex

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{palatino}
%\usepackage[scaled=0.9]{luximono} %say
\input Tcode_julia.tex
\begin{document}

\else

\input Tcode_julia.tex
\unless\ifdefined\enddocument
  \let\enddocument\end
  \def\begin#1{\csname #1\endcsname}
  \def\end#1{\csname end#1\endcsname}
\fi

\fi %Latex

\DeclareWord[julia]{rotate}{Function} %or \MakeWord{rotate}{Fuction}

Some inline code \ncode{function rotate end}. Displayed code follows:

\begin{Code}
for i in 1:3       # These are the rows
    for j in 1:3   # These are the columns\
    	          two line comment, just to show that it is possible
        print("row= ", i, ", column= ", j, "\n")
    end
end
\end{Code}

We  may also write \fcode{}{juliaCode} instead of \fcode{}{Code}:

\begin{juliaCode}
@assert(m>0) "You should have at least one element"

F = Vector{Float64}(undef,0)  
for i = 1:m
    push!(F, x[i]*h*h)
end

Mymodule.Sanitize!(F)
\end{juliaCode}

\end{document}
