Questions tagged [notepad]

Notepad is a simple text editor for Microsoft Windows. Use this tag for issues relating to interfacing with Notepad and/or duplicating Notepad functionality.

Notepad is a simple text editor for Microsoft Windows. It has been included in all versions of Microsoft Windows since Windows 1.0 in 1985.

787 questions
7
votes
7 answers

How to open the notepad file in java?

I want to open Notepad in my Java program. Suppose that I have one button if I click this button the notepad will appear. I already have a file name and a directory. How can I implement this case?
guilgamos
  • 1,695
  • 4
  • 13
  • 5
7
votes
2 answers

Fastest way to draw a large text file in C# winforms

I have a large text file (~100MB) that I keep it's lines in a list of strings. my Winform requires occasionally to show a part of it, for example 500,000 lines. I have tried using a ListBox, RichTextBox and TextBox, but the drawing takes too much…
MatanKri
  • 263
  • 1
  • 3
  • 13
7
votes
4 answers

How do I get a python program to run instead of opening in Notepad?

I am having some trouble with opening a .py file. I have a program that calls this .py file (i.e. pathname/example.py file.txt), but instead of running the python program, it opens it in Notepad. How to I get it to run? The program itself takes in a…
FaerieDrgn
  • 305
  • 2
  • 3
  • 9
6
votes
3 answers

Powershell dot sourcing opens up file in notepad

Everytime i dot source a file in PowerShell it opens a copy of the file in notepad. Exe: .\MyScript.ps1 The script runs fine - its just really annoying having these pop up all the time. Is there a way to suppress this? I'm on windows 7 x64 and…
Jamie Marshall
  • 1,885
  • 3
  • 27
  • 50
6
votes
4 answers

Notepad files always open as a very small window

I couldn't fix it no matter what I did. I'm on Windows 7, 64 bit. I know; creating a shortcut to that file, right clicking on the shortcut and choosing run-> maximize is a workaround but this is too much a hassle. Will I need to create shortcut for…
user2155565
  • 317
  • 3
  • 5
  • 11
5
votes
3 answers

How to get the exact path of notepad.exe in order to associate a file extension

I need to associate a file extension I have created “.rulog” with notepad.exe as part of a setup project installation for a windows 7 machine (it’s here since we require admin privileges to write to the registry). Basically I need to obtain…
Jeb
  • 3,689
  • 5
  • 28
  • 45
5
votes
6 answers

How to add Save file Dialog Box using C#

I need to implement something similar to Notepads' save option. Assuming I have a button placed next to a RichTextBox, what I want is, when this button is clicked, a Dialogue box will open up, which will look similar to the one that appears when…
Shamim Hafiz - MSFT
  • 21,454
  • 43
  • 116
  • 176
5
votes
6 answers

get the value of notepad and put it inside the c# string?

Notepad: Hello world! How I'll put it in C# and convert it into string..? So far, I'm getting the path of the notepad. string notepad = @"c:\oasis\B1.text"; //this must be Hello world Please advice me.. I'm not familiar on this.. tnx
ghie
  • 567
  • 4
  • 11
  • 26
5
votes
1 answer

Solving notepad chinese encoding bug in advance

There is a known bug in notepad where occasionally files which open completely normally in notepad++, wordpad, etc, open as Chinese characters in notepad. Copy pasting the contents of the file (from notepad++ to a fresh document) will still produce…
dWitty
  • 494
  • 9
  • 22
5
votes
5 answers

How to compile a program in c with a fresh copy of windows? No External Software

Is there any way to compile some Windows API code without installing any development environments to Windows? Does Windows come with a C Compiler built in that I could just write some code in notepad, and run it through a cmd or a batch file?
5
votes
2 answers

How can I use the data URI in internet explorer as a URL?

The code I'm trying to use is data:text/html, I found it…
Pacdizzle
  • 53
  • 1
  • 5
5
votes
2 answers

Why Windows notepad put all the code line on a single line when I open a file created using Notepad++?

I have the following problem: I use Nodepad++ editor to write some text\code and I save my file into it, if later I open this file using the Windows notepad this lost the text format and put all the code line on a single line. Why? Can this thing…
AndreaNobili
  • 40,955
  • 107
  • 324
  • 596
5
votes
1 answer

Get QTextEdit changes when textChanged() signal is emited

I have a QTextEdit and I connected the textChanged() slot to a signal. How can I find the changes when the signal is emitted. For example, I want to save the cursor position and the character written when I write something.
John Smith
  • 1,276
  • 4
  • 17
  • 35
5
votes
5 answers

Replace newline character with ',' in Notepad or BBEdit or using Unix command `tr`?

I have to replace the newline character with ',' for using in some oracle command but in a single command. I can't figure out how to do it. Input: R1 R2 R3 R4 Required Output: 'R1','R2','R3','R4'
Learner
  • 1,544
  • 8
  • 29
  • 55
5
votes
3 answers

Any way to do this in any text editor?

I have a file which is like email = myemail@gmail.com email = myemail@gmail.com email = myemail@gmail.com Can I make it like this? email = myemail1@gmail.com email = myemail2@gmail.com email = myemail3@gmail.com Can I do this in any text editor?…
Manoj M J
  • 409
  • 4
  • 16
1
2
3
52 53