You can buy pinstriping tape. Used to be able to get it from super cheap/autobarn.

Cut a length slightly longer than what you want. Stick one end down and hold it with your finger. Applying a bit of tension to keep it straight, lower it into place then pull the backing off while using a credit card or similar to push it down and keep any air from getting under it.