Make a pattern.
Make a 2 pixels high picture (if you don't make it wider than 1 px it will produce 'scanlines')
one line transparent and one with color.
Then 'edit -> define pattern'
When you want to use it, just select 1px wide area you want it on and paint it.
There's other ways, but that was kinda easy to explain
