New editor for ns code