coder textarea in javascript/jquery - javascript

I need a textarea that looks more like an programing environment, like notepad++. Basically, all I want is to insert TABs and keeps the cursor in the same indenting level as the previous line.
Any help on building my own would be greatly apreciated as well (my javascript/jquery skills are very basic).
thanks (:

Code Mirror would be a great option, it's easy to use with your skills.
You can also check this Wikipedia post for more information. http://en.wikipedia.org/wiki/Comparison_of_JavaScript-based_source_code_editors
Good luck ;)

Take a look at this link which will help you decide which editor to use based on your requirement. It has provided wide variety of JavaScript based editors with support for various browsers.
http://en.wikipedia.org/wiki/Comparison_of_JavaScript-based_source_code_editors

You can try this plugin for TABs http://teddevito.com/demos/textarea.html

Related

making a text edit field

I am a beginner in HTML5, CSS3, and JavaScript. I reached my limit for the use of the trial version of Microsoft's OneNote. I like the program so much, I want to make an equivalent of it as an html version so I won't have to empty my pockets for the paid version.
The part I need help with is the part where you type in your notes. I don't know how to make a text edit field in html. Is it possible to do something like that? I would be satisfied if it could only do the same functions as note pad. Just so long as I am able to do the simple type and edit functions. Can someone show me how to code this or lead me to a site that teaches something like this?
Thanks! Tony.
There are plenty of solutions out there. Nicedit, CKEditor, etc. These all have a Rich text interface, and are javascript managed.
The simplest solution would be to just use a <textarea> which would allow for plain text input only.
The simplest way is to use the <textarea> tag in HTML. See this link too.
You can also use HTML5 Data caching to save your notes locally through your browser after implementing your textarea tags.
Here's a neat little plugin that should be relatively minor to install/use.
https://github.com/ekdevdes/storage.js

How does jsfiddle mark up code? Is there a library for this?

If you've ever used www.jsfiddle.net, you might notice that it marks up code with proper colorings, and various other helpers like translating tabs to four spaces or shift-tab. With Firebug I see that it's doing this with an iFrame. Is there an open source library to do this? I want to let people write Python on a web page, but make it pretty like jsfiddle.
Check out CodeMirror.
Look here (SyntaxHighlighter)
Here you can find a simple tutorial.

what are the top js lib/framework/tool i should know?

i know the basics of js the language for several years, but never had a need to go deeper than say change a style of a paragraph or do a image rollover or validate a field.
am thinking going deeper with js.
can anyone recommend the top 3 library or framework that you cant live without?
Xah
Let's ask Stack Overflow Tag Trends:
Its really a personal choice, but:
JQuery
Node.js (Serverside JS)
SproutCore or Capuccino
You could take a look at this: http://www.ibm.com/developerworks/web/library/wa-jsframeworks/?ca=dgr-dwexnbarbw

Simple web-based icon editor

My web site uses 16 x 16 pixel icons (stored on the server as PNG files). I'd like to provide functionality for users of the site to edit these icons. My site already uses jQuery and jQuery UI, and I'm familiar with these, but any suggestions would be welcome.
EDIT
It seems that this is harder than I thought. I think I'm going to hold off trying to incorporate this functionality into the web site. But if anyone knows of a JavaScript icon/bitmap editor not already mentioned in the thread, please let me know.
Check out http://www.jpie.net/ (requires PHP as well), it's the most advanced thing I've found but not too sure how much actual 'editing' users need to do (or can do on a 16px image...)
This is what you need: 100% javascript, great clean code.
https://mrcoles.com/favicon-creator/
Is the perfect start. With some work you can make it fit exactly as you need.
HIH,
You can get some inspiration here
http://www.rw-designer.com/online_icon_maker.php
I don't know of any licence-free, ready-to-go editor though.

Implementing a simple feedback form in JS

How do I implement the feedback form that the following sites have?:
http://foodoro.com/
http://www.heyzap.com/
(look at the left center.)
Thanks!
You should probably checkout the JQuery or similar library for this sort of effect. There are heaps of great tutorials and plug-ins out there.
I would use this code in github
https://github.com/lorenzoongithub/getsomefeedback
as a template / boilerplate.
It should be quite easy to adapt to your requirements.
Start by looking into jQuery. It's pretty nice for stuff like this.
http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/
The first example on there shows a simple way to at least get a sliding panel. It's not exactly what you want but it gives you an idea of what jQuery can do and maybe how you'd achieve what you want.
Edit: Here's a direct link to the sliding panel demo on there...
http://www.webdesignerwall.com/demo/jquery/simple-slide-panel.html

Categories