Created
November 19, 2013 19:30
-
-
Save jkishner/7551081 to your computer and use it in GitHub Desktop.
This is a simple script for the menubar outline in Fargo.io that will split a headline into multiple sections. Insert a ^ wherever you want the headline split, then run the script. The text before the first ^ will stay on that line. The text after each additional ^ will be added immediately below the previous headline.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
split x times | |
var line = op.getLineText(); | |
var tagArray = line.split("^"); | |
op.setLineText(tagArray[0]); | |
for (var i=1; i < tagArray.length; i++) { | |
op.insert (tagArray[i], down); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment