Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'm trying to find some jQuery/JavaScript wysiwyg editors that are simply made specifically for editing raw code. Don't need any formatting and needs to only accept plain text.
The most important feature is to have line numbers, It would be even good if it colors the code in real time.
Light weight solutions are always preferred.
CodeMirror does this and is very good. Here's a demo with line numbers.
http://ace.ajax.org/ looks like it. It's have syntax highliting and line numbers.
Live demo: http://ace.ajax.org/build/kitchen-sink.html
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
Is this a good practice? I mean is it good if all of my codes(behavior,presentation,structure) are inside on my .js(for example, since I'm making a website) file? Why? Sorry for my bad english.
Obviously it is not good practice, the recommended practice is to split all the code into its designated file. The simplest method is to use multiple script tags with src.
If you're really interested in dividing up your code efficiently, I would suggest learning BoostrapJS or AngularJS.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I am working to build my own custom UI library providing a feature like customized form elements, cards, tabular view and much more, most of the feature is inherited from bootstrap. there is a lot of javascript code and I am looking for proper standard and format to be followed while writing any javascript library to make the code manageable and can be reused.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I struggle to find any suggestions how to organize RactiveJs code.
Currently I just put RactiveJs code to the bottom of the page. It was okay till my scripts were small. But the bigger they are the more problem it causes. I'm considering moving the RactiveJs code to separate js files, may be using some pattern (Module?).
Are there any guidelines in this regards?
There is a spec for component-per-file: https://github.com/ractivejs/component-spec/ and there are loaders that allow you to incorporate them into the page.
However, Ractive doesn't force you to use this pattern. You are free to experiment whatever convention works for you.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
Is there a way that you can check the javascript used on an html element ? ie. if my javascript was in an external js script would there be a way to check which part of the js realted to that html object, in the same way you can use firebug to check which css elements are attached to the html ?
There is also a very cool plugin that will help you in this case.
Here is the live DEMO
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm looking for a simple (preferably C-based) Javascript compiler that I can use to determine if a chunk of Javascript contains any syntax errors, and the location (line number) of those errors. Is there a small library that anyone knows of that I can use to do something like this?
The V8 isn't good enough for you?
You could also try SpiderMonkey by Mozilla