I [probably] would use one of two methods:
Tagged text as @Robert at ID-Tasker suggested. However, I would insert the formatting in Excel columns, export as tab-delimited, and clean up in Word. (For example, remove some tabs between code and content, replace other tabs with returns, etc.) Here is a reference for tagged text: https://pubassist-docs.paratext.org/articles/#!pa-6-1-user-manual/orientation-indesign-tagged-text
Use a third-party database plugin, such as EmSoftware InData.
... View more