Dynamic Syntax Highlighting with AngularJS and Highlight.js
I am building a site that illustrates common application vulnerabilities such as SQL Injection. I am using AngularJS and highlight.js to create interactive examples. How can I make both AngularJS and highlight.js update my code snippets? Example This Fiddle demonstrates how entering ' OR 1=1 -- in the Email field could change the intended behavior of the query if the user's input is not validated or sanitized. SELECT * FROM dbo.Users WHERE Email='{{email}}' AND Password='{{password}}' When a user enters an email address and password, Angular updates the query. However, syntax highlighting does