简体   繁体   English

如何隐藏正在编辑的文本(及其长度)?

[英]Howto hide the text (and its lenght) that are editing?

I want write password of the root to the shell, but without move the cursor when i write it.我想将root的密码写入shell,但写入时不移动cursor。

prompt = {"Senha de Administrador: "}; your text defaults = {""};你的文本defaults = {""}; your text`rowscols = [1,25];你的文本`rowscols = [1,25];

your text senha_root = inputdlg (prompt, "para Alterar Permissões de porta USB ", ... your text rowscols, defaults); your text senha_root = inputdlg(提示,“para Alterar Permissões de porta USB”,... your text rowcols,默认值);

I can't, for example, change the color text to the background tex, as alternative例如,我不能将颜色文本更改为背景 tex,作为替代

There are several ways to hide text while editing it, depending on what you mean by "hiding" the text and the context in which you are editing the text.有多种方法可以在编辑文本时隐藏文本,具体取决于“隐藏”文本的含义和编辑文本的上下文。 Here are a few options:这里有几个选项:

If you are editing text in a word processor or text editor, you can use the "hidden" text formatting feature to hide the text.如果您正在文字处理器或文本编辑器中编辑文本,您可以使用“隐藏”文本格式功能来隐藏文本。 This will cause the text to be invisible while you are editing, but it will be visible when the document is printed or exported.这会导致文本在您编辑时不可见,但在打印或导出文档时会可见。

If you are writing code and want to hide certain lines or blocks of code while you are editing, you can use a code folding feature to collapse the code so that it takes up less space in the editor.如果您正在编写代码并希望在编辑时隐藏某些行或代码块,您可以使用代码折叠功能来折叠代码,以便它在编辑器中占用更少的空间。

If you are writing text on a website and want to hide it from view, you can use the "display: none" CSS style to hide the text.如果你正在网站上写文字并且想隐藏它不可见,你可以使用“显示:无” CSS 样式来隐藏文字。 This will cause the text to be invisible to users, but it will still be present in the HTML code of the page.这将导致文本对用户不可见,但它仍然会出现在页面的 HTML 代码中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM