I started making a web app to write screenplays with the goal being a compromise between WYSIWYG and portability. I am using Codemirror (demo halfway down page at http://louissimons.com/scriptjr/), and I realized that I shouldn’t reinvent the wheel on text editor features, and would like to instead build it as a set of tools for Atom.
Most of the features I need seem to be there, like the ability to change the font-size of a line, or make custom editor user-interface panels for scene listing. Before I get too far, though, the only thing I haven’t found an example of is setting the left and right margins custom for a set of lines. In Fountain.io syntax, this is helpful for recognizing dialogue. It would look something like the following:
I'm a descriptive text. CHARACTER 1 I'm a bunch of dialogue for a character with a soft line-wrap that is a smaller width then general text. And back to descriptive scene text.
I have read a few discussions saying that messing with padding can cause cursor issues, so I was wondering is this possible?