在 Dreamweaver 中显示列号?
我不太确定这是否会在苏或这里进行,但我认为这里的人更有可能找到答案。
每个人都知道 80 个字符栏规则,对吧?我希望能够遵循这一点,但我使用 Dreamweaver,直到此时我还无法找到一种方法来打开我所在文本中当前列的显示。
有谁知道在哪里可以找到这个?
编辑:这个问题的另一个答案是另一个具有 Dreamweaver 浏览器模块的替代程序。 (我不喜欢 Eclipse 或 Notepad++ 的资源管理器窗口。)
I wasn't quite sure if this would go on SU or here, but I figured people here were more likely to have an answer.
Everyone knows the 80 character column rule, right? I'd like to be able to follow this, but I use Dreamweaver, and until this point I have not been able to find a way to turn on a display for the current column in the text I am on.
Does anyone know where this might be found?
EDIT: An alternative answer to this question would be an alternative program that has as nice of an explorer module of Dreamweaver. (I don't like Eclipse or Notepad++'s explorer windows.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我假设 80 个字符列规则意味着代码行不应超过 80 个字符。如果是这样,我还没有看到一种内置方法来显示您拥有的列。
起初我以为编辑(Mac 上的 Dreamweaver)->首选项->代码格式:自动换行和列后设置为适当的数量将通过强制代码以您想要“最大”的行长度换行来获得您正在寻找的内容。我在 Mac 上的 Dreamweaver CS3 和 CS4 中尝试过,当代码行长于 After 列中的设置时,我都无法让代码换行。我发现自动换行仅在您在设计视图中工作时才会发生,并且当我在代码视图中进行测试时,我从未见过这种所谓的“自动换行”发生。我在启用和不启用自动换行的情况下再次尝试(查看 -> 代码视图选项 -> 自动换行)。我只能在启用自动换行并且窗口比代码行宽时才能够使代码换行。
因此,在打开自动换行的情况下,我认为您可以创建一行包含 80 个字符的代码,然后使文档编辑窗口足够窄,以仅显示所有字符而不换行。然后,您的代码将被包装为 80 个字符,以便在您达到上限时通知您。
然而,这非常没有吸引力。 FWIW:我一直一起使用 Dreamweaver 和 Eclipse,所以如果您确实需要这些列,您可以将 Eclipse 设置为外部编辑器(编辑 -> 首选项 -> 文件类型/编辑器)并设置外部代码编辑器。设置完成后,您可以进入编辑->使用 Eclipse(或任何您的编辑器)进行编辑。如果您通过编辑(Mac 上的 Dreamweaver)-> 进行设置,您还可以使用键盘快捷键。键盘快捷键。如果您尚未修改键盘快捷键,则需要创建当前设置的新副本。这深入到编辑 ->启动外部编辑器。
另外,不久前我构建了一个 Dreamweaver 扩展:CMX 当前列。这是一个商业扩展(5 美元)。为了充分披露,我创建了该扩展,但不再从它的任何销售中获得分成,因为我不再在 CommunityMX 工作。它只添加一个字段来显示光标所在的当前列,因此对于大多数人来说可能不值得花 5 美元。
I assume that by the 80 character column rule that you mean that you lines of code shouldn't be longer than 80 characters. If so, I've not seen a built-in way to display what column you own.
At first I thought that Edit(Dreamweaver on Mac) -> Preferences -> Code Format: Automatic Wrapping and After Column set to the appropriate amount would get you what you were looking for by forcing the code to wrap at the line length you wanted to "max out" at. I tried on Mac in Dreamweaver CS3 and CS4 and in neither was I able to get the code to wrap when the line of code was longer than the setting in After column. I found out that the Automaic Wrapping only occurs when you're working in Design View, and as I was testing in Code View, I never saw this so called "automatic wrapping" occurring. I tried again with and without Word Wrap enabled (View -> Code View Options -> Word Wrap). I was only able to get the code to wrap when Word Wrap is enabled and the window is narrower than the line of code is wide.
So, with Word Wrap turned on, I think that you could create a line of code with 80 characters in it, then make the document editing widow narrow enough to just show all of the characters without wrapping. That will then wrap your code at 80 characters to let you know when you've topped out.
However, that's pretty unappealing. FWIW: I use Dreamweaver and Eclipse all the time together, so maybe if you really need the columns, you could set Eclipse as the external editor (Edit -> Preferences -> File types / Editors) and set the external code editor. Once that is set, you can go to Edit -> Edit with Eclipse (or whatever your editor is). You can also use a key board shortcut if you set it up via Edit (Dreamweaver on Mac) -> Keyboard shortcuts. If you haven't already modified the keyboard shortcuts, you need to create a new copy of the current set. This drill down into Edit -> Launch External Editor.
Also while ago I built a Dreamweaver extension: CMX Current Column. It's a commercial extension ($5). For full disclosure I created the extension, but don't get a cut of any sales of it any more as I'm no longer with CommunityMX. It only adds a single field that displays the current column the cursor is in, so it's likely not worth the $5 for most people.
2017年,我发现自己也在寻找这个答案。我在 Dreamweaver 右下角的“实时预览”图标旁边找到了行列,位于“OVR”/“INS”文本(无论您激活了哪个)和“实时预览”图标之间。当您在工作屏幕中移动光标时,行/列将会改变。
希望对某人有帮助。
In 2017, I found myself looking for this answer too. I located line column in lower right corner of Dreamweaver, next to the "Real-time Preview" icon--between the "OVR"/"INS" text (whichever you have activated) and the "Real-time Preview" icon. As you move your cursor in the work screen, row / col will change.
Hope that helps someone.