editing

Javascript syntax highlighting in vim

Has anyone else found VIM's syntax highlighting of Javascript sub-optimal? I'm finding that sometimes I need to scroll around in order to get the syntax highlighting adjusted, as sometimes it mysteriously drops all highlighting. Are there any work-arounds or ways to fix this? I'm using vim 7.1. ...

How to copy text from Emacs to another application on linux

When I yank text in Emacs 22.1.1 (in its own window on X, in KDE, on Kubuntu), I can't paste it anywhere else. I'm reduced to opening kate to copy the text with ^C. Is there a better way? ...

Is there a user friendly XML editor out there? I can't find anything good, preferably open source

Something to take an XML schema and let you add/edit data but not change the XML structure, preferably installed on a server. basically a UI to edit xml documents as a web app. Someone has got to have done this already right? ...

Hot to commit changes for a TreeView while editing a node (C#)?

I am playing with Microsoft's TreeView control and I am trying to force a data update of some sorts while editing a node's label, similar to UpdateData for a grid. Basically, in my editor, I have a Save button and this TreeView control: what I want is when I am editing a node's label in the TreeView, if I click on the Save button I want...

Creating/modifying images in JavaScript

Is it possible to dynamically create and modify images on a per pixel level in JavaScript (on client side)? Or has this to be done with server based languaged, such as PHP? My use case is as follows: The user opens webpage and loads locally stored image A preview of the image is displayed The user can modify the image with a set of s...

How do I duplicate a whole line in Emacs?

I saw this same question for VIM and it has been something that I myself wanted to know how to do for Emacs. In ReSharper I use CTRL-D for this action. What is the least number of commands to perform this in Emacs? ...

Editable data grid for C# WinForms

I need to present the user with a matrix of which one column is editable. What is the most appropriate control to use? I can't use a ListView because you can only edit the first column (the label) and that's no good to me. Is the DataGridView the way to go, or are there third party alternative components that do a better job? ...

Korn shell wraparound

Okay, I'm sure this is simple but it is driving me nuts. I recently went to work on a program where I've had to step back in time a bit and use Redhat 9. When I'm typing on the command line from a standard xterm running Korn shell, when I reach the end of the line the screen slides to the right (cutting off the left side of my command) i...

Java Script to edit page content on the fly

I'm writing an article about editing pages in order to hand pick what you really want to print. There are many tools (like "Print What you like") but I also found this script. Anyone knows anything about it? I haven't found any kind of documentation or references. javascript:document.body.contentEditable='true'; document.designMode='on'...

Change to 64 bits not allowed when trying to edit in debug, why?

I receive this message (see image below) when I try to edit in debugging. This occur only in my Vista64bits OS, not in my XP computer. Why and what should I do? Update I found that I need to compile in x86 to be able to change value when debugging. So my question is WHY that I can't do it in x64? ...

Can you create an ASP.NET editing system for a class just by defining it?

I was watching a tutorial on Rails and was very impressed that you could so easily create an editing system for a class just by defining it. Can this be done in ASP.NET? I know there are ORMs out there, but do they come with an editing system? To explain what I mean by an editing system, consider a class for defining people class Per...

vi indentation

What's the easiest way to increase or decrease indentation for a large block of code in vi? ...

How do I insert text at beginning of a multi-line selection in VI/VIM?

In vim, how would I go about inserting characters at the beginning of each line in a selection? For instance, let's say I want to comment out a block of code by prepending '//' at the beginning of each line (assuming my language's comment system doesn't allow block commenting like /* */). How would I do this? ...

Which areas of the web.config can i safely delete?

When beginning a new web project, i'm always a bit worried about removing pieces of the web.config. It seems there are more entries than ever with Net 3.5 SP1. Which bits of the .config do you delete for the following scenarios: WCF Web Service, no Javascript support Simple MVC Website EDIT Can someone document a basic list of thin...

Round trip editing of binary documents stored on a server

Hi all, I'm looking to build some functionality for a content management system for the editing of files stored on the server. I'd like to provide users the ability to easily download files locally to their computer, open the file for editing, and save it back to the server. The process should be as seamless as possible. Here's the s...

How do I edit and delete data in Django?

I am using django 1.0 and I have created my models using the example in the Django book. I am able to perform the basic function of adding data; now I need a way of retrieving that data, loading it into a form (change_form?! or something), EDIT it and save it back to the DB. Secondly how do I DELETE the data that's in the DB? i.e. searc...

Video editing capablities

Hi All I am building a desktop application ( .NET) for which basic video editing capabilities like adding music ,captions ,editing etc is required. Are there any open source options or third party libraries any one can recommend Thanks in advance Anon ...

Switching from python-mode.el to python.el

I recently tried switching from using python-mode.el to python.el for editing python files in emacs, found the experience a little alien and unproductive, and scurried back. I've been using python-mode.el for something like ten years, so perhaps I'm a little set in my ways. I'd be interested in hearing from anyone who's carefully evalu...

How to add and relate a node within the parent nodes add form in Drupal.

Hi, I want to accomplish the following scenario in Drupal: You have 2 content-types. Lets say, an application-form for a lisence, and a content-type for persons. Then when you go to add a lisence in the "node/add" submission form in Drupal, i would like to add a relative number of persons that would be related to this lisence, and onl...

Free resource editor for Windows .rc files?

Microsoft Visual C++ Express does not include the built-in resource editor that comes with the professional versions. Are there any good, free, alternatives out there that let you visually edit those .rc files? Note: I am talking about the resource script source files used by Visual C++ to compile the resources, not the compiled resourc...