🔗 MobileCode has a new home, and iOS support!
The original site is preserved below.

Handmade conference demo
MobileCode (previously medc) is an editor for C. It was written for 📱phones and adapted to 🖥desktop.

It features:

individual line wrapping, prettified
When you click on the right edge of an overlong line, it will expand prettified.
The expansion is editable. When you 📱swipe left 🖥right click, an expansion unexpands. Changed lines will edit spaces according to priority.
Unchanged lines retain their original formatting.
Lines can also be expanded without prettifying.
hierarchical collapsing based on {} and empty lines
Groups of nonempty lines are collapsed into their first line.
{} blocks are included.
At the top level, functions are also grouped.
Top-level groups are collapsed further.
📱swipe control
Swipe in the right third of the screen to scroll.
Swipe up in the middle to search.
Swipe down in the middle for commands.
code generation via shell script comments
// Generated: echo 'int foo;'
int foo;
// Generated: will replace the line below it with the first line of the output of the code after 'Generated: '.
/* GEN
echo 'int foo;'
echo 'long foo2;'
*/

int foo;
long foo2;
//ENDGEN
/* GEN will run the rest of the comment as a shell script and replace the lines until the line //ENDGEN with its output.
📱Termux integration
'Intent Termux' will send a RUN_COMMAND intent to Termux with RUN_COMMAND_PATH /data/data/com.termux/files/usr/bin/medcncmd.
etc: multicursor, regex search, regex replace, undo, select, line select, cut/copy/paste

Get it on Google Play (Google Play and the Google Play logo are trademarks of Google LLC.)
Discord
Mailing list (e.g. iOS news)