I like the LaTeX syntax highlighting in emacs through AUCTeX, but for various reasons like to write my LaTeX documents in Google Drive. I wanted to write a Google Script to do LaTeX syntax highlighting directly in my Google Drive LaTeX documents.

I've looked around online to see if people have attempted this. I've seen the source code for latex-lab, which is a standalone online editor, that reads from Google Drive. I would prefer writing directly in Google Drive itself. The code uses codemirror, and has a latexparser JavaScript that seems like it shouldn't be too painful to port to Google Script.

My main question is: does this sound feasible? I don't want to dedicate the time if it's just going to turn out too slow, or if someone has already written such a script.

closed as off-topic by Henri Menke, Speravir, moewe, Peter Jansson, Guido Jan 4 '14 at 20:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – Henri Menke, Speravir, moewe, Peter Jansson, Guido
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    This question does not fall under the scope of TeX.SX, as it is about coding some webservice. Maybe it is better suited for StackOverflow. – Henri Menke Jan 4 '14 at 19:20
  • 1
    You could try to include Google Code Prettify. This is the one also used on all StackExchange sites. – Speravir Jan 4 '14 at 19:48
  • 1
    I suggest you try Drive Notepad. Chrome Web Store app but works in Firefox too. It can edit and syntax highlight all sorts of languages, including LaTeX. It integrates nicely into Google Drive. – marczellm Jan 4 '14 at 21:41
  • @marczellm In Firefox I have to click on “Launch App”, I guess. – Speravir Jan 4 '14 at 22:01
  • @Speravir Yep :) After you've granted the permissions to Drive Notepad, it will associate itself with the supported file formats in Google Drive online, and appear in the "Open with..." menu too. – marczellm Jan 4 '14 at 22:31

Browse other questions tagged or ask your own question.