I'm populating my CodeMirror textarea with an unformatted string of CSS. I have no control over the formatting of this CSS.
Unformatted CSS example
position: absolute; top: 66px; left: 746px; width: 399px; height: 353px; background-color: pink;
When I set that string as the value of the CodeMirror textarea, it looks like this:
I want it to look like this:
I've tried AutoFormatDateRange but I think that function has been removed?
You should be able to use .autoFormatRange()
, but I think your CSS has to be wrapped in <style></style>
tags for CodeMirror to know how to format your string.
Edit
I haven't used CodeMirror this way myself, but inserting your string here didn't work:
http://codemirror.net/2/demo/formatting.html
But when wrapping it in <style></style>
it was formated as expected.
I'm very new to Appcelerator titanium studio. Could you please help me out how to call webservice (Java Based) in Appcelerator titanium.
I'm very new to Appcelerator titanium studio. Could you please help me out how to call webservice (Java Based) in Appcelerator titanium.
In bootstrap I have a fixed top nav bar and fixed bottom nav bar. I want to show a large image in the background between the space of those two nav bars and I also want to cover the width of the ...
In bootstrap I have a fixed top nav bar and fixed bottom nav bar. I want to show a large image in the background between the space of those two nav bars and I also want to cover the width of the ...
I am using a wrap bootstrap theme to style my rails 3.2 app. After including all the stylesheet files and javascript files, I see that some inline editing(which uses javascript and Jquery) is not ...
I am using a wrap bootstrap theme to style my rails 3.2 app. After including all the stylesheet files and javascript files, I see that some inline editing(which uses javascript and Jquery) is not ...
I'm new to JavaScript but I've written some code that as far as I can see is formatted correctly however when I add the data elements in it breaks the code but I cannot see why as according to the ...
I'm new to JavaScript but I've written some code that as far as I can see is formatted correctly however when I add the data elements in it breaks the code but I cannot see why as according to the ...