I'm currently working on an editor for Cucumber feature files. As I write step definitions, I'd like the keywords Given, When, Then, etc. to appear in blue text, and any text between < > brackets to show up in red.
Is there a way to change the color of text in an input field dynamically?
This is a sample of my code:
<form ng-submit="submit(senario)">
<input type="text" placeholder="step definition" ng-model="senario.step"
required="required" />
</form>