-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Provide a feature to allow StatTag to attempt to automatically tag a code file. This could be invoked from the "Tags" dialog.
General idea:
- User attaches a code file to the document
- User opens Tag Manager dialog
- User clicks "Auto Tag Code File(s)"
- StatTag explains what it will do, and allow the user to confirm they want to continue or to stop
- StatTag identifies regions that it thinks represents codes. A simple heuristic (at first) is that a code is a single command or display/print statement on a line. Any line of code like this will be considered as a candidate tag.
- StatTag begins executing the code file. When it executes the candidate tag code, it tries to determine the type of output (image, table, value). If it can't determine, it can fall back to setting it as a Verbatim tag
- The tags are added into the code file, with the determined tag type from step 6.
- The Tag Manager dialog is refreshed, showing the user the newly added tags.