问题标签 [textpad]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
232 浏览

java - Java 类在 Eclipse 之外不起作用

我的程序在eclipse下运行良好。如果我用 textPad 打开它并编译它,我会收到以下消息:

注意:C:\Users\Aezur\Desktop\Project2\SummerQ1.java 使用未经检查或不安全的操作。注意:使用 -Xlint:unchecked 重新编译以获取详细信息。

它说已经编译成功,但它没有运行。

有任何想法吗?

0 投票
1 回答
18617 浏览

regex - 如何在 Textpad 中使用正则表达式在指定字符后逐行删除任何内容?

假设我在 Textpad 中有以下文本:

我想从冒号后出现的每一行中删除所有字符。新文本应为:

0 投票
4 回答
35988 浏览

textpad - 在文本板中的每条记录后插入换行符

我有一个包含多行文本的文本板文件。例如

猫:意思-动物。猫跑到房子里
老鼠:意思-啮齿动物。这只老鼠住在区里,吃剩饭菜
第 3 词:描述
第 4 词:描述

我的档案中有很多这样的记录。我想在每条记录的末尾插入一个换行符以便正确展示。手动操作很乏味。如果您知道插入换行符的自动化过程,请提供帮助。

0 投票
2 回答
984 浏览

java - 如何使用 TextPad 增加堆大小

我正在使用 TextPad 运行一个简单的 Java 程序,但一直出现内存不足的错误。

互联网上的一些挖掘告诉我,我需要增加堆大小,而做到这一点的最佳方法似乎是使用标志。但是,我找不到任何关于如何在 TextPad 中实现标志的信息,或者至少找不到任何似乎适用于我的程序的信息。

这是我正在使用的代码:

任何帮助将不胜感激,即使它只是告诉我放弃 TextPad 并使用不同的编辑器!

0 投票
1 回答
655 浏览

java - 我如何通过文本板使用 -Xlint 编译 java 程序

我在我的高中编程课上,在我们最新的项目中,我无法理解为什么它在窗口中给我这个消息:

如果这对任何人有帮助,我正在使用 TextPad。如何-Xlint通过 TextPad 编译它?

0 投票
3 回答
1941 浏览

regex - Textpad Regex - 查找选择的开始/结束

我想为选定的文本添加标签。

尝试记录一个宏,该宏搜索并^替换<strong>为. 当单词/短语位于行首时效果很好......$</strong>

但是当我有一个在段落中或前面有空格的单词时,它会失败。

有任何想法吗?提前致谢。

0 投票
1 回答
1139 浏览

regex - 文本板中的正则表达式 - 删除所有未包含在引号内的文本

我正在使用 Textpad 编辑一些需要在其中进行以下转换的文本,

原文

应该成为

我需要提取引号中的所有内容并删除其他所有内容。

0 投票
1 回答
5500 浏览

regex - Regex - find a string and jump immediately to the next line

For instance I am looking for something in a bigger text file - very simple for example a string of three digits with \d{3} . What I want to do is: when notepad++/textpad has found the first matching string in a line (and has replaced it with something else) it should jump immediately into the next line.

How can I accomplish that?

I tried \r\n , but in this case textpad finds not the first string with three digits in the line, but always the last. And notepad++ doesn't find anything at all.

I cannot use ^ either because there are some random words (one, two, three or even foru or five) before the digits I try to find and replace.

Thanks for any help.

0 投票
3 回答
13827 浏览

regex - 用正则表达式查找字符串并删除整行

我正在尝试在 Textpad 中查找带有正则表达式的字符(例如“#”),如果找到,则应删除整行。# 既不在行首也不在行尾,而是介于两者之间,并且不连接到另一个单词、数字或字符 - 它与左右一个空格独立存在,但当然该行的其余部分包含单词和数字。

例子:

结果:

我怎么能做到这一点?

0 投票
1 回答
99 浏览

type-conversion - 使用文本板打开时 .doc 文件中的额外字符

当我在文本板中打开一个文档时,每个字符之间都会附加一些额外的空字符。

就像我的文档有以下文字बॉम्बे 测试网络邮件。

当我以文本形式打开时,它会以 I....M....I testingforwebmail 的形式出现

有人可以帮我吗?