Use labelled bracket notation. This app will build the tree as you type and will attempt to close any brackets that you may be missing. Use Copy tree to paste the tree into a document, or Copy link to share it. To save it as a file, right-click the tree and choose "Save image as", or turn on Download SVG in Options for a file that stays sharp at any size. While there's an error or warning, Copy tree and right-clicking the tree are turned off until it's fixed. Add ^ to a label, as in NP^, to draw a triangle over its words. Write NP_i, NP_1 or DP_*i/j to draw an index. For a movement line, mark where the phrase lands with a name, as in NP.a, and write <a> where it came from. A node can have both, as in NP_i.a.
This is a fork of mshang's Syntax Tree Generator. The forked code can be found at github.com/codylewis/syntree.