HTML Format

by Wade Walker for brackets >=1.8.0 
Adds a menubar of HTML tags to be inserted into an HTML document. Each HTML tag can be given a customizable keyboard shortcut. Add bold/italic/underline to right-click menu. Many more features available.
version
1.0.2
modified
2017-11-20T14:21:35.256Z
first seen
2014-11-07T14:36:53.682Z
downloads
129983
 Versions
1.0.2
2017-11-20T14:21:35.256Z
5240
1.0.0
2017-07-24T02:15:21.161Z
14591
0.4.0
2017-01-17T01:39:40.294Z
23567
0.3.9
2017-01-11T19:30:28.828Z
2611
0.3.8
2016-09-13T19:36:51.786Z
23274
0.3.7
2016-09-12T13:18:38.931Z
1006
0.3.6
2016-09-11T23:18:00.379Z
468
0.3.5
2016-09-09T01:06:13.394Z
1590
0.3.4
2016-04-17T12:54:55.556Z
17361
0.3.3
2016-04-16T02:13:08.459Z
847
0.3.2
2016-03-26T21:17:11.749Z
5533
0.3.1
2015-12-07T19:42:11.475Z
9566
0.2.8
2015-07-10T00:51:47.671Z
7055
0.2.7
2015-06-30T20:30:43.130Z
2947
0.2.6
2015-06-25T17:19:11.850Z
1491
0.2.5
2015-06-19T00:41:58.090Z
2145
0.2.4
2015-06-18T23:37:58.042Z
158
0.2.3
2015-06-18T23:31:09.786Z
12
0.2.2
2015-06-18T20:05:19.486Z
179
0.2.1
2015-06-18T18:18:23.976Z
172
0.2.0
2015-06-12T18:58:08.783Z
1356
0.1.3
2014-12-02T14:26:14.895Z
6435
0.1.2
2014-11-07T14:36:53.682Z
2379
 Readme
brackets-htmlformat &nbsp; &nbsp; [![Downloads](https://badges.ml/brackets-htmlformat/total.svg)](https://brackets-extension-badges.github.io#brackets-htmlformat) &nbsp; [![Downloads](https://badges.ml/brackets-htmlformat/last-version.svg)](https://brackets-extension-badges.github.io#brackets-htmlformat) ================== Brackets extension adding HTML Format commands to menu bar and common keyboard shortcuts. The main purpose behind this extension was to add common hotkeys to insert Bold and Italic tags around highlighted copy in HTML documents. My coworkers started talking about Brackets and that I should use it. I gave it a shot, but the lack of common HTML hotkeys caused me to look into making an extension for adding in something that I use everyday. Badge counters kindly provided by: https://brackets-extension-badges.github.io/ <br><br> ## Known Issues Using the Shift+Enter to insert a break tag can still function inside the \<head\> and inside HTML tags. Numbers cannot be entered when using the Insert empty tag feature. <br><br> ## Update History #### Update - November 20, 2017 Updating the code that checks to see if the tag attempted to be added is going to be inserted in the middle of the same tag. This code was bugged and as been replaced with a new checking mechanism. #### Update - August 3, 2017 Just changing my GitHub name/URL back to jediwade because the Brackets Extension Registry keeps track of who created what extension by their GitHub username and not their email address. I had changed my username to match my email and website, deciding to be a bit more professional, but I was then unable to update this Brackets extension. I emailed the Registry people but they still have not replied. Because this makes me fear that someone could just change their name to by mine and then delete the extension, I am reverting my GitHub username back and needing to change the URL in the package.json file. #### Update - July 23, 2017 Lots of changes in this release. Added the ability for the user to set which file extensions this Brackets extension will work in. Added Shift + Enter keyboard shortcut to insert a break tag, plus options related to that feature. The detection of same tags being inserted is improved. Code cleaned up a bit in some areas. Changed the file/folder structure to allow for different translations. Fix bugs with the HTML Format menu being removed when it shouldn't have been if the split editor view was being used. Added a Welcome screen. Added a What's New screen. Started adding Table tags but it just makes the HTML Format menu too tall for a 1080p screen (and probably already too tall for laptop screens). Changed the file/folder structure to allow for different locale translations (would need help/volunteers to make new locales happen). #### Update - January 16, 2017 Fixed issue with the menu bar items not being in the correct order on Windows 10 after ~17 items were added. After ~17 items, the order would be in reverse from order added and all dividers would be at the bottom. #### Update - January 11, 2017 Adding in HTML5 tag "main", per user request. Requiring latest version of Brackets by having proper implementation of "Mustache". Removing HTML Format menu from the Menu bar when there are no files open. #### Update - September 13, 2016 Bug fixes #### Update - September 12, 2016 Added a quick fix for older versions of Brackets after I made changes to get rid of a deprecation warning. This will probably be the last version update for older versions of Brackets. #### Update - September 11, 2016 Trying to fix bugs with the shortcut/hotkey assignment with numbers. #### Update - September 8, 2016 Requested feature to have H1–H6 and paragraph tags added to the drop-down menu has been granted and added. Removing $.on() events with $.off() to be proper. When adding a tag around highlighted copy that already features that same tag on the outsides of the text selection, remove that outer tag if it is a tag that should not surround itself, i.e. two anchor tags. #### Update - April 17, 2016 More bug fixes related to preferences and going against my disdain for anonymous functions, I have changed the CommandManager.register() method to take an anonymous function calling _addTag() and _addSpanStyle(), passing the appropriate argument to make it function the same as before, but without dozens of functions doing the same thing. #### Update - April 15, 2016 Add anchor tag to list of elements. Fix bug that only older HTML tag/style items from drop down menu could have keyboard shortcuts saved. #### Update - March 26, 2016 Preferences will trigger a Brackets reload with extensions when saving changes. #### Update - November 22, 2015 Bug fixes and more tags added to the format menu. #### Update - July 26, 2015 Bug fixes and added bold, italic, and underline tags to the right-click menu. This feature must be enabled in the preferences and deselects the Brackets default selection of 1 to 2 characters at the cursor location when the right-click action occured. #### Update - July 9, 2015 All issues that I have seen in the dev tools window of Brackets should be fixed. Because of this, the latest version of Brackets is required to ensure that it will work. Added a feature that if the cursor is within an inline style and a tag or style is inserted, it will be automatically converted/added into the inline style attribute. If it was a tag that doesn't have a style equivalent, it is ignored and nothing will be added. #### Update - June 18, 2015 Currently working on fixes for the preference menu when displayed using different themes other than the default light theme. Fixed the Control key being listed twice for Mac OS in preferences. Fixed checking either Bold/Strong or Italic/Emphasis checkboxes triggering the duplicate keyboard shorcut warning. #### Update - June 12, 2015 Added preference menu option to be able to set keyboard shortcuts for any of the HTML tags/styles or change the default keyboard shortcuts. The issues with the add blank tag feature should be fixed. It is still, for me, a bit of a complicated thing to have figured out how to do so there may be issues present still or it may not be the best possible implementation of such a feature.