Giving an IPA transcription or a tree is very often necessary in discussing linguistics topics, but it is exceedingly slow and painful to do it here, because the editing software seems to have no special provision for it. I know a little about doing it using external tools, but that is so much trouble that I would seldom do it.
IPA is difficult to provide for, and I have no ideas about doing it. I do have an idea about formatting tree diagrams. I'll give you the format for specifying trees that I worked out a while back for making class handouts. It uses indentation.
Imagine a simple tree for "A fruit fell into the garbage can". Here's the way I'd like to write the code for a suitable tree:
S NP Det a N fruit VP V fell PP P into NP Det the N garbage can
I imagine the intent of this is obvious. In the display, S labels the top node, and additional indentation means that a label is for a daughter of the preceding node. Lines with the same indentation and not separated by a line with less indentation are tree sisters. That's it -- very simple.
I'd love to be able to illustrate answers with trees.
The programs I wrote a long time ago to format trees in the above indented format are still available here: https://www.ctan.org/tex-archive/graphics/tree?lang=en . I doubt they'd be any use these days.