add text/x-latex and text/x-context
Submitted by Matija “hook” Šuklje
Assigned to Shared Mime Info group
Description
Apart from pure TeX there are two big macro languages for TeX:
- LaTeX (more known, wide userbase, badly maintained)
- ConTeXt (less known, smaller but fast growing userbase, very actively maintained and extensible)
Since to most advances editors it is not the same which is which (because of different syntax highlighting, autocompletion etc.), I suggest that a mime type should be added to differentiate these two from plain TeX.
The most notable difference are the environments (given example is how the document text is handled, but same applies to all the other environments):
- e.g. in LaTeX: \begin{document} ... \end{document}
- e.g. in ConTeXt: \starttext ... \stopttext
Another example. This time of a user-specified environment:
- in LaTeX: \begin{my_env} ... \end{my_env}
- in ConTeXt: \startmy_env \stopmy_env