如何创建一个修改/添加到我的html文件内容的按钮 [英] How do I create a button that modifies/adds to the contents of my html file

查看:187
本文介绍了如何创建一个修改/添加到我的html文件内容的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!我正在尝试帮助我的公司迁移到Visual Studio 2013以进行代码管理。



我们修改和编写html文件,并且急需创建按钮(在VS界面中)。



为了详细解释,我们现在使用的是HTML Kit,我们有一系列自定义插件,可以插入代码,修改现有代码,并以正确的方式格式化,以便我们公司的软件使用它。 br />


我们正在从HTML套件转向VS 2013,因为它与TFS完全集成。



我需要知道的是创建/编辑按钮/下拉列表的自定义工具栏,其中包含我们所需的功能。我已经玩过片段,其目的是让按钮可以简单地实现片段。这可能不是最优雅的处理方式,但它可以用于我们的目的。



这里的任何帮助将不胜感激,我们越早移动到VS,我们越早离开Visual Source Safe。



在大多数情况下,我们的大多数按钮都只是贴上我们的自定义html标签,这就是我们想要的地方喜欢开始。它们中的一些功能提供了一些更复杂的功能,但是这些功能可以在以后处理。

Hello! I am attempting to help my company migrate to Visual Studio 2013 for our code management.

We modify and write html files, and are in dire need of button creation (in the VS interface).

To explain in detail, what we're using now is HTML Kit and we have a series of custom plugins that insert code, modify existing code, and format things in the correct way for our company's software to use it.

We are leaning away from HTML Kit and towards VS 2013 because it has full integration with TFS.

All I need to know how to do, is create/edit a custom toolbar of buttons/dropdowns that has our needed functionality in it. I have played around with snippets, with the purposed outcome of possibly having the buttons simply implement the snippets. This is probably not the most elegant way to handle it, but it would work for our purposes.

Any help here would be greatly appreciated, the sooner we can move to VS, the sooner we can move away from Visual Source Safe.

For the most part, most of our buttons simply ad our custom html tags, this is where we would like to start. There are some more complicated functions that some of them provide, however those can be dealt with at a later time.

推荐答案

如果这就是你需要的全部功能,你可以添加到htmlToolbox。



如果你看一个html文件,工具箱窗口应该显示HTMLToolbox。



如果您现在制作一些自定义HTML,例如;



We'll if that is all you need, you could just add to the htmlToolbox.

If you looking at a html file, the toolbox window should show the HTMLToolbox.

If you now make some custom HTML, like;

<div class="form-group">
     <label></label>
     <input type="text" class="form-control" />
 </div>





您可以选择它然后将其拖到工具箱中。

重命名它。 et voila。



我不确定如何与他人分享这个工具箱。但是我想它会保存在磁盘上的某个地方。



You can select it and then drag it into the toolbox.
Rename it. et voila.

I'm not sure on how to share this toolbox with others. But I suppose it is saved somewhere on disk.


你想要什么和需要是可能的。你可以彻底扩展visual studio。但是没有简单的1行awnser。



但是如果从适合你的平台转移到Visual Studio的原因是TFS比我看的那样其他一些选择。



TFS本身不需要Visual Studio。甚至还有Eclipse插件。



但它也可以直接从目录结构中使用。

TFS团队资源管理器可以运行作为一个独立的应用程序。它恰好也是Visual Studio中的一个面板。



如果你想要,你可以将Office文档存储在TFS中。



看看Team Explorer Everywhere;

https://www.visualstudio.com/en-us/products/team-explorer-everywhere-vs.aspx [ ^ ]
What you want and need is possible. You can severly extend visual studio. But there is no simple 1 line awnser to this.

But if the reason for moving from a platform that works for you to Visual Studio is TFS than I would look at some other options.

TFS itself doesn't demand Visual Studio. There are even Eclipse plugins for it.

But it can also be used from a directory structure directly.
The TFS Team Explorer can run as a standalone app. It yust happens to be a panel in Visual Studio as well.

If you want you can store Office documents in TFS.

Look at Team Explorer Everywhere;
https://www.visualstudio.com/en-us/products/team-explorer-everywhere-vs.aspx[^]


这篇关于如何创建一个修改/添加到我的html文件内容的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆