Several browser based code editors such as Ace, CodeMirror, Monaco etc. provide the ability to embed a full-featured code editor in your web page. However, if you just need a simple editor with syntax ...
AppState will change between one of 'active', 'background', or (iOS) 'inactive' when the app is closed or put into the background.