问题标签 [textedit]

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 投票
1 回答
1537 浏览

android - Android 自定义对话框 EditText

我尝试访问 EditText 的值,它们应该相等但它们不是

我尝试制作密码对话框,并通过“if else”验证密码

对话框正确显示,但是当我输入相同的值时,如果结构将它们报告为不相等

0 投票
2 回答
3433 浏览

c# - 在 AvalonEdit 中突出显示所有出现的选定单词

我需要在 AvalonEdit 中突出显示所有出现的选定单词。我创建了一个 HihglinghtingRule 类的实例:

之后我该怎么办?谢谢。

0 投票
2 回答
170 浏览

android - 代码不工作,虽然它以前工作过

我想知道是否有人可以在这里帮助我。我正在创建一个 Android 应用程序作为我的最终项目,它目前运行良好,除了一个部分。我遇到的问题是这个类不工作

当在 XML 中设置的按钮被按下时,它会弹出一个屏幕,说强制关闭应用程序。

这些按钮是使用 xml 中内置的“andoid:onClick=''”语句设置的。getText() 的语句也在这个类中使用并且工作正常

有谁知道为什么该语句似乎在一个类而不是另一个类中起作用:

这是来自 logcat 的内容:

0 投票
4 回答
2300 浏览

windows - Windows - 从非常大的文本文件中删除特定行

我有一个非常大的文本文件(600mb),我想从该文件中删除特定的行。

我知道要删除的行号。有没有一种非常简单的方法来实现这一点?

0 投票
1 回答
1804 浏览

listview - 从 QML ListView 中的 TextEdit 获取数据

我有一个问题,我找不到解决方案,希望你能在这里找到它:我用它的模型和它的委托等做了一个 ListView,像这样:

委托包括 Text、TextEdit 等......像这样:

在同一个项目“creation”中,还有一个带有两个按钮的 ToolBar,如下所示:

我想要的是:当我单击第二个按钮“创建”时,我只想用 console.log(arg1,...) 显示在 TextEdit 中写入的内容,称为 listView 中每个项目的“seriesTextEdit” . 例如,如果我的列表视图包含 10 个项目,并且用户在所有项目的所有 TexTedit 中插入了一个值,我如何访问这些数据?非常感谢,贾马科

0 投票
1 回答
8859 浏览

focus - How to change the Devexpress TextEdit current text on focus

I've a Devexpress TextEdit control that displays a string something like "24 year." I want the text "years" to disappear every time the user clicks inside the text box (for editing purpose). And, I want the text to reappear when the focus is lost. How can i do this?

Thanks in advance

0 投票
2 回答
1229 浏览

javascript - Open HTML file in Mac's Text Edit from a web browser

I'd like to use Javascript (or perhaps some more suitable script?) to open an HTML file in Text Edit (I'm on a mac)

I have a local web page made using Text Edit with different tabs that link to more Text Edit files on the page.

I'd like some way of quickly opening the tabs in Text Edit from my browser, then I could edit the HTML files easily in Text Edit and when I refresh the browser it will display my newly edited tab.

Pretty sure this should be simple but I'm a total beginner at Javascript and apart from going through the W3Schools tutorials, I have no knowledge of JScript per se.

Thank you for any help with this in advance.

0 投票
2 回答
457 浏览

android - 如何在文本字段上运行验证

这里的目标是在用户输入联系信息时验证每个字段,并最终对每个字段应用自动格式(大写、拼写等)。

我几乎可以使用以下代码进行此操作,但它基于按键回调,而我真正想要触发的是每个文本字段的“失去焦点”。有任何想法吗?

0 投票
1 回答
379 浏览

macos - 以编程方式在 TextEdit 中获取选定的文本字体名称

是否可以在 TextEdit 中检索所选文本的字体名称(通过 ObjC 或 Carbon)?我尝试了这段代码,但“值”为空:

谢谢。

0 投票
1 回答
560 浏览

ms-word - 从 Word 复制到 TextEdit 文档时去除隐藏字符

我承认我在这里过得很糟糕。

我有一个读取 txt 文件并上传到数据库的 C 程序。

如果您将数据直接输入到 TextEdit 中,它可以正常工作。如果您在 Microsoft Word 中创建数据并复制它,它就无法正常工作。主要问题是如何newline工作,尽管 MySQL 调用也因为隐藏字符而变得混乱。

我一直在搞乱十六进制检查,\r但那里有混乱的数据。当我打印一个十六进制转储时,终端输出会做一些可以预见的疯狂事情,比如跳回一行、覆盖已经打印的字符等等。我一直在isprint(尝试消除隐藏的角色,但无论如何还是有一些事情发生。

那么...有没有办法将 Word 中的数据“干净”复制到 TextEdit 中?