Try this:

QuickEdit is a fast, stable and full-featured text editor for Android devices. It has been optimized for both phone and tablet, it's of high performance and real-time feedback on large text files (more than 10,000 lines). The speed and responsiveness are very good if you compare it with other text editor apps on Google Play. It can be used as a text editor or code editor for normal text files and programming files. It will automatically detect the character encoding of your files, but you can still change it as you wish.
QuickEdit allows you to Access files from recently opened or added files collections, FTP, Google Drive, Dropbox and OneDrive and has syntax highlight for more than 40 languages like C++, C#, Java, XML, Javascript, Markdown, PHP, Perl, Python, Ruby, Smali, Swift, etc. QuickEdit has the ability to edit system files on rooted devices too.
Quoda is yet another code editor for Android. Unlike other code editors, Quoda has predefined templates for various languages like CSS, C#, HTML, Java, PHP, Python, Visual Basic, and XML. This makes it very easy to create new files from scratch. Just like Turbo Editor, Quoda has a bottom bar with all the essential keys to type brackets, quotes, special characters, and symbols. Quoda supports syntax highlighting and code completion for various languages like Perl, C, C++, Java, JavaScript, Lisp, C#, Lua, Markdown, CSS, Haskell, ActionScript, Objective-C, HTML, PHP, Python, Google Apps Script, etc.
Quoda built-in support for Google Drive, Dropbox, and SFTP/FTP. Using the SFTP/FTP feature, you can browse, download, and update files to and from your server. Other features of Quoda include the ability to download source code from URL, markdown support, syntax themes, find and replace with regex support, auto-indentation, bracket matching, line bookmarking, etc.

Turbo Editor delivers in terms of being a complete learner’s text editor. Supporting several languages including HTML5, CSS, JavaScript, and Python, the editor does what it promises with fewer ad distractions. But there’s a feeling that somebody decided to cut corners. The biggest annoyance is a bug that doesn’t allow you to preview results. It can also be difficult to form indents or to find a line of code.

Pros: A neat Spartan interface to hone your coding skills in an Open Source environment. You can easily share your results over Hangouts and transfer files from your local SD cards.
Cons: Mostly a work in progress. But, if they fix the bugs, Turbo Editor has real potential.
Dcoder can save your day if you are trapped in long public commutes and could do with a few creative spells. It works decently even with your native Android keyboard. One of the best for learning IDEs, the app allows you to choose from over thirty languages. Featuring a rich text editor with syntax highlighting, the output is visible right on the window, which is reassuring. The “Design Now” feature is ideal for web developers. The app is generally free, but the paid version isn’t too expensive.
