Revit can automatically mark doors, but only in one direction, horizontal or vertical. However, because there are two directions for doors on the wall, after marking them using the Mark All function, the doors in the other direction must be adjusted manually. This script reads the names of the doors and then marks them, parallel to the direction of the doors.
But please know that this mark is text, not a marker. The marker has not been achieved yet. The text will not change with the properties of the door, so it is only applicable when it is no longer modified. This script may be updated later.