Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Compare: Language Support

Showing with 6,176 additions and 2,666 deletions.
  1. +33 −33 API-Cleanup-Ideas.md
  2. +3 −3 Areas-of-Expertise.md
  3. +23 −23 Brackets-Coding-Conventions.md
  4. +65 −0 Brackets-Community-Testing.md
  5. +79 −0 Brackets-Developers-Guide.md
  6. +21 −14 Brackets-Development-How-Tos.md
  7. +1 −1 Brackets-JSDocs-Guidelines.md
  8. +39 −4 Brackets-Node-Process:-Overview-for-Developers.md
  9. +3 −1 Brackets-Screenshots.md
  10. +70 −56 Brackets-Shortcuts.md
  11. +89 −79 Brackets-Smoke-Tests.md
  12. +61 −0 Brackets-in-Browser.md
  13. +2 −0 Building-Brackets-Releases.md
  14. +4 −0 Building-CEF-and-Chromium.md
  15. +68 −0 CEF-Debugging.md
  16. +4 −2 CSS-Context-API-implementation-spec.md
  17. +103 −0 CSSUtils,-HTMLUtils.md
  18. +3 −2 Cache-Folder.md
  19. +108 −84 Collecting-End-of-Sprint-Stats.md
  20. +53 −13 Command-Line-Arguments.md
  21. +72 −0 Commands,-Menus-and-Shortcuts-Implementation.md
  22. +1 −1 Contributing-to-Brackets.md
  23. +62 −22 Crash-Logs.md
  24. +126 −0 Creating-Themes.md
  25. +15 −3 Customize-Your-Code-Font.md
  26. +7 −1 Debugging-Brackets.md
  27. +36 −34 Debugging-Test-Windows-in-Unit-Tests.md
  28. +31 −0 Dependency-Analysis.md
  29. +511 −5 Extension-API-Research.md
  30. +0 −2 Extension-Registry-Architecture.md
  31. +7 −6 Extension-Unit-Tests.md
  32. +158 −136 Extension-package-format.md
  33. +3 −1 File-System-Implementations.md
  34. +21 −6 Generating-Brackets-API-Docs.md
  35. +107 −0 Health-Data.md
  36. +75 −73 Home.md
  37. +251 −251 How-to-Hack-on-Brackets.md
  38. +184 −192 How-to-Report-an-Issue.md
  39. +299 −254 How-to-Use-Brackets.md
  40. +164 −155 How-to-write-extensions.md
  41. +35 −0 Inline-Color-Editor.md
  42. +172 −0 Issue-Clusters-1.0-Milestone.md
  43. +18 −0 JavaScript-Code-Hints.md
  44. +1 −1 Language-Support.md
  45. +27 −0 Large-Projects.md
  46. +129 −112 Linux-Development-for-Contributors.md
  47. +3 −4 Linux-Version.md
  48. +0 −10 Live-Preview-Issues.md
  49. +63 −0 Live-Preview-Multibrowser.md
  50. +122 −0 Live-Preview-Overview.md
  51. +462 −333 Localization-Tests.md
  52. +47 −37 Localization.md
  53. +16 −0 Migrating-or-Syncing-Brackets-Configuration.md
  54. +13 −0 Performance-Profiling.md
  55. +105 −0 Preferences-Overview.md
  56. +152 −160 Preferences-System.md
  57. +4 −1 Preferences.md
  58. +63 −0 Programmatically-Opening-Files-in-Brackets.md
  59. +5 −5 Pull-Request-Checklist.md
  60. +3 −5 Pull-Request-Process.md
  61. +102 −0 Release Notes: 1.0.md
  62. +42 −36 Release-Notes.md
  63. +1 −1 Release-Notes:-0.41.md
  64. +69 −13 Release-Notes:-0.42.md
  65. +88 −0 Release-Notes:-0.43.md
  66. +83 −0 Release-Notes:-0.44.md
  67. +112 −0 Release-Notes:-1.1.md
  68. +93 −0 Release-Notes:-1.2.md
  69. +96 −0 Release-Notes:-1.3.md
  70. +1 −1 Resources.md
  71. +31 −0 Running-Brackets-Unit-Tests.md
  72. +17 −0 Running-Jasmine-tests-from-the-command-line-for-Linux.md
  73. +424 −84 SplitView-Extension-Migration-Guide.md
  74. +6 −0 Testing-Brackets.md
  75. +8 −0 Themes.md
  76. +44 −0 Translations-community-assitance.md
  77. +280 −204 Troubleshooting.md
  78. +30 −0 Upgrading CodeMirror from Upstream.md
  79. +118 −0 User-Key-Bindings.md
  80. +6 −0 Using-File-Filters.md
  81. +4 −3 Videos.md
  82. +75 −52 Working with Multiple Selections.md → Working-with-Multiple-Selections.md
  83. +13 −0 icon-guidelines/extension-icon-template.svg
  84. +0 −8 icon-guidelines/topcoat-plugin-20.svg
  85. +0 −66 icon-guidelines/topcoat-preview-20.svg
  86. +0 −70 icon-guidelines/topcoat-webfont-20.svg
  87. BIN images/splitview-icon.png
  88. BIN screenshots/brackets-quick-edit-thumb.jpg
  89. BIN screenshots/brackets-quick-edit.png
  90. BIN screenshots/brackets-ui-thumb.jpg
  91. BIN screenshots/brackets-ui.png
  92. BIN screenshots/quick-edit.png
  93. +0 −3 tutorials.md
  94. +20 −0 افزونه ها در براکتس به چه معناست؟.md
  95. +11 −0 براکتس-چیست؟.md
2 changes: 1 addition & 1 deletion Language-Support.md

Custom CodeMirror modes

If your language is not already supported by CodeMirror (see list above), you'll need to write a new CodeMirror mode. To use your custom CodeMirror mode, load it using require(), register it with CodeMirror using CodeMirror.defineMode(), then call LanguageManager.defineLanguage() as above. You can also use CodeMirror.defineSimpleMode(), which does not fit as many languages, but is a whole lot easier to write in the first place.

Refining an existing language

An extension can also modify/enhance an existing registered language. Retrieve a Language object by its ID, then use setter methods to change it:

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ LanguageManager.defineLanguage("haskell", {

#### Custom CodeMirror modes

If your language is not already supported by CodeMirror (see list above), you'll need to [write a new CodeMirror mode](http://codemirror.net/doc/manual.html#modeapi). To use your custom CodeMirror mode, load it using `require()`, register it with CodeMirror using [``CodeMirror.defineMode()``](http://codemirror.net/doc/manual.html#modeapi), then call ``LanguageManager.defineLanguage()`` as above.
If your language is not already supported by CodeMirror (see list above), you'll need to [write a new CodeMirror mode](http://codemirror.net/doc/manual.html#modeapi). To use your custom CodeMirror mode, load it using `require()`, register it with CodeMirror using [``CodeMirror.defineMode()``](http://codemirror.net/doc/manual.html#modeapi), then call ``LanguageManager.defineLanguage()`` as above. You can also use [``CodeMirror.defineSimpleMode()``](http://codemirror.net/demo/simplemode.html), which does not fit as many languages, but is a whole lot easier to write in the first place.


## Refining an existing language
Expand Down