不同 URL 的 CODA 实时预览

发布于 2024-10-02 05:12:44 字数 479 浏览 0 评论 0原文

考虑这种情况:您正在编辑某些 WordPress 主题的模板文件,并希望将其放在 CODA 实时预览中。由于路径不同,因此不会显示实时预览。

例如,我正在编辑; /wp-content/themes/pixel/header.php 并希望在实时预览窗口中有 www.wordpress.loc (我使用“loc”进行本地开发) 仅当我有 http://www.wordpress.loc/wp 时它才有效-content/themes/pixel/header.php 实时预览。但当然这对于 WordPress 开发者来说是无法使用的。

现在我必须始终单击实时预览窗口中的刷新按钮。有没有任何插件或方法我可以如何自动执行此操作? 请不要建议我使用 XRefresh 或 LiveReload,因为它们不适用于内部 CODA 预览。

Consider this situation: You are editing template file from some wordpress theme and want to have it in CODAs live preview. As the paths is different it will doens't show live preview.

e.g I'm editing; /wp-content/themes/pixel/header.php
and want to have www.wordpress.loc in live preview window (I use "loc" for local development )
it only works if I have http://www.wordpress.loc/wp-content/themes/pixel/header.php in live preview. But of course this is unusable for wordpress developer.

Now I have to always click on refresh button in live preview window. Is there any plugin or method how can I do that automatically ?
Please do not suggest me XRefresh or LiveReload as these don't work for internal CODA preview.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

野の 2024-10-09 05:12:44

在 coda 版本 2 及更高版本中,您可以通过单击“预览”,然后单击预览屏幕左下角的“在新窗口中预览”来打开新的预览窗口。
然后,您可以将该窗口的网址栏中显示的页面更改为您想要在映射或其他内容中查看的任何网址。

现在,当您保存脚本时,预览将刷新并立即显示您的更改。

有点晚了,但可能对某人有帮助:}

In coda version 2 and above you can open a new preview window by clicking 'preview' then clicking 'preview in new window' at the bottom left of the preview screen.
You can then change the page that is being shown in the url bar of that window to whatever url you want to view in your mamp or whatever.

Now when you save your scripts the preview will refresh and show your changes immediately.

Bit late but it may help someone :}

多孤肩上扛 2024-10-09 05:12:44

这似乎是不可能的。我用谷歌搜索了一下,但找不到任何东西。我也用尾声。

It seems to be impossible. I googled around and i could't fine anything. I do use coda too.

苦妄 2024-10-09 05:12:44

环顾四周并阅读一些插件,例如 Lively(单独的预览窗口)。当预览与您正在编辑的页面不同的页面时,这似乎是 API 的限制。这是一种耻辱,因为我非常乐意做你所要求的同样的事情。

Looking around and reading up on some of the plugins like Lively ( separate preview window ). It appears to be a limitation of the API when it comes to previewing a different page from the one you are editing. Which is a shame as I would dearly love to do the same thing you are requesting.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文