Questions tagged [text-editor]

A text editor is a type of program used for editing plain text files.

Filter by
Sorted by
Tagged with
1 vote
2 answers
68 views

Editing system files in Linux (as root) with GUI and CLI text editors #3

One year and a half ago I posted the second iteration of this script for a review here: Editing system files in Linux (as root) with GUI and CLI text editors #2 Since then, it has been "...
user avatar
4 votes
3 answers
183 views

C: Find and Replace in a text file (by a new programmer)

I'm new to C as in I've only studied it for a year and it's my first language. I still don't know how to handle real world code and so would like to see how a real world programmer would write up a ...
user avatar
2 votes
1 answer
40 views

how to efficiently draw line numbers in edittext ondraw without causing lag in scrolling

I have an implementation of an edit text to show line numbers and also highlight the current line. I think it needs more optimization because when I scroll through the edit text with about 500 lines ...
user avatar
  • 121
1 vote
0 answers
52 views

Javascript Online Notebook

I use an online, simplified notebook. I'm able to add notes, delete notes, and edit existing notes. I find the code to be pretty unattractive and is heavily repeated. When I built this, I borrowed ...
user avatar
7 votes
1 answer
1k views

Using TinyMCE with responsive file manager PHP and Javascript

I use TinyMCE with responsivefilemanager and I wanted to know that is my code well-written maintainable and readable, Sorry If this sounds like a stupid and basic question because this is such a basic ...
user avatar
2 votes
1 answer
255 views

Python Command Line text editor

I want to make a command-line text editor in python. Is this good code? ...
user avatar
1 vote
2 answers
125 views

Editing system files in Linux (as root) with GUI and CLI text editors #2

This is the second iteration of this question A note to start with: the first iteration of this question can be found here: Editing system files in Linux (as root) with GUI and CLI text editors As ...
user avatar
-1 votes
1 answer
68 views

any performance suggestions? [closed]

I have a basic python file editor/executor(still working on it) but I get know that this does not have the best performance so are there any sugestions about how to up the performance of this code: <...
user avatar
2 votes
1 answer
107 views

Editing system files in Linux (as root) with GUI and CLI text editors

My intention is to POSIX-ly write one generalized function for running various text editors I use for different purposes through sudoedit, i.e. editing files as ...
user avatar
4 votes
1 answer
97 views

AutoSuggest: Better way to implement focus after inserting a snippet

Introduction: I am working on a javascript plugin AutoSuggest, My aim is to create an IDE like autocomplete experience in web applications using JavaScript. One of the features I have implemented is ...
user avatar
  • 91
1 vote
1 answer
1k views

Command pattern for simple text editor

I was asked to code a TextPad with following functionality: display() – to display the entire content display(n, m) – to ...
user avatar
  • 133
7 votes
1 answer
3k views

A little Python hex editor

First off I'm quite new to Python, there will be a lot of messy/overcomplicated code, that's why I'm posting on this site. This code is written in Python (2.7) using the Tkinter library. Questions To ...
user avatar
  • 181
2 votes
0 answers
74 views

Markdown Previewer app done in ReactJS

What do you think of my markdown previewer, which uses the marked library? I'm asking because I'm new to React. And also what do you think of app itself? Did I use React correctly and properly? HTML: ...
user avatar
3 votes
1 answer
529 views

Text editor using MVC pattern

I am beginner in programming and recently I wrote an editor, inspired by the Notepad program, with all basic features any editor should have, like finding, undoing, copying, etc. The problem is I do ...
user avatar
3 votes
0 answers
62 views

code for changing from old copyright to a new one in python

This code needs to get two inputs: one is the full address of a directory and another the file extension that it will be changed. These inputs cab be added in the default section of ...
user avatar
7 votes
1 answer
2k views

Simple console text editor

I have been following along Gary Bernhardt's excellent video series on "Building a Text Editor From Scratch". It's in Ruby but I wanted to do it in C# just to see how much it differs. Implementation ...
user avatar
7 votes
2 answers
665 views

Vanilla JS rich text editor, extremely small

A few days ago, I created this rich text editor, and posted it to reddit and got over 300 upvotes in less than 1 day. I am a beginner, so I don't believe that this project is very complex, but with ...
user avatar
  • 71
11 votes
2 answers
3k views

Call a text-editor from within a Python script to get user input

Motivation I'd like to know how integrate the use of text editors (e.g. emacs, vim, etc.) into command-line Python programs. Features I'd like to be able to do the following: Call a text editor ...
user avatar
  • 361
2 votes
3 answers
126 views

Simple line editor

I'm self-learning C now and I want to find out if my code is good and clean or kinda messy. This exercise is a simple line editor. please tell me what do you think, If anything needs to be better in ...
user avatar
1 vote
1 answer
803 views

Java Swing GUI editor with tools and scripts

I am creating project named MEdit (link). It's rather advanced text editor, which features: Syntax highlighting for around 91 languages. Is pretty well commented Is written in pure Java Possibility ...
user avatar
-4 votes
1 answer
1k views

Notepad implemented in Swing [closed]

Please give me suggestions for improving this. ...
user avatar
4 votes
1 answer
126 views

Rich Edit Form Input (x86-16)

This procedure is the natural continuation of the Example 4 that I wrote for How buffered input works, a Stack Overflow Q/A. Features include: freely positioning the cursor. Left Moves cursor left....
user avatar
  • 4,058
5 votes
2 answers
912 views

Basic Text Editor

Below code produces a basic text editor that I have written using tkinter with python. I tried to be as well structured as I can but in some parts I have been lazy about it. Classes that are used: <...
user avatar
  • 417
3 votes
1 answer
111 views

Python text appender

The aim of it is to be the quickest way to add to existing notes via SSHh. Is this code in Python style? Am I missing any methods that would make the code simpler or legible? ...
user avatar
11 votes
2 answers
605 views

A Binary Editor with Live Text Preview

This is a tool I needed for some other things (it's incomplete, but almost done) which is essentially just a text-editor that has two text-boxes: the left being the binary view / raw bytes, the right ...
user avatar
4 votes
0 answers
164 views

Simple Brainf_ck IDE in JavaFX 8

I have this simple IDE for playing with Brainf_ck. It has no file functionality; only the code, input and output fields are present, and the "compiler" is integrated. Here is how it looks like: My ...
user avatar
  • 25.3k
2 votes
0 answers
78 views

Replace text in emacs buffer with processed one

I have function that processes text and returns it in altered state. Result of the processing is a property list with following properties of interest: :success - ...
user avatar
  • 465
5 votes
1 answer
113 views

Cleaning up Erlang code for a text editor

On Monday and Tuesday I started learning Erlang through the Erlang Koans, and around Wednesday night I decided to use my newfound knowledge to implement a simple text editor (Akin to ed(1)). Currently ...
user avatar
  • 153
3 votes
1 answer
334 views

Online notepad in JavaScript

I have been told for my code below i need to "Improve and optimise the codebase of the application to reflect modern and best coding practices". Can anyone help me in doing this? As I know the service ...
user avatar
4 votes
1 answer
727 views

Integrating the Ace embeddable code editor for editing HTML, CSS, and JavaScript

I am currently implementing the Ace-editor embeddable code editor. In to my application. I use a div with a certain class(example: editor_js) to render the editor the div also gets a data attribute (...
user avatar
  • 77
1 vote
0 answers
1k views

TinyMCE plugin to save with cancel button

Please provide constructive criticism for this TinyMCE plugin which allows the user to save the content, or cancel and go back to the original. JS Bin ...
user avatar
3 votes
2 answers
880 views

Java Swing Text Editor

Creating my first program in Swing and I was hoping to get some feedback. I'm looking for constructive criticism and tips for my swing code and my code in general. Don't really know what I'm doing so ...
user avatar
  • 31
10 votes
1 answer
2k views

Beginner text editor

I wrote a simple text editor and I would like to get some critical comments. Below I present only a main part of code. I removed icons, irrelevant functions, etc. I am aware,that JTextArea is not best ...
user avatar
  • 587
22 votes
3 answers
2k views

HTML Editor: online HTML editor with real-time preview

HTML Editor is an online HTML editor with a minimalist approach. Edit your HTML, CSS, and JavaScript code and monitor the instant live preview. Please review the source code and provide feedback: <...
user avatar
  • 307
7 votes
3 answers
22k views

Simple text editor class

I have recently undertaken a project for programming practice based on a simple text editor. Normally this kind of thing wouldn't bother me, but ever since I completed a software architectures module ...
user avatar
  • 73
4 votes
1 answer
3k views

Custom WYSIWYG Editor

I am so sick of WYSIWYG editors being exclusively for the latest browser or being huge with every option under the sun. I tried to make my own, using code I found online as well as a little of my own ...
user avatar
  • 377