Skip to content

Commit b1aee0f

Browse files
committed
Remove redundant ## from headings
This is valid syntax, but in recent years they are being omitted.
1 parent beccee2 commit b1aee0f

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

README.ja.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Settings
7777
実験的および作業中の機能
7878
-------------------------------------
7979

80-
### CC Mode, CEDET, EDE, and Semantic ###
80+
### CC Mode, CEDET, EDE, and Semantic
8181

8282
In 2013 Daniel Haxney began rewriting parts of PHP Mode in terms of Emacs' built-in CC Mode. This laid the foundation for incorporating some of the inherit IDE-ish features of Emacs, such as CEDET, EDE, and Semantic. Support for these tools continues to improve thanks to the work of Andrea Turso, Steven Rémot, Joris Steyn, and others. If you wish to test, contribute to, or simply experiment with such features then [this thread is a good place to start](https://github.com/emacs-php/php-mode/issues/256).
8383

@@ -221,7 +221,7 @@ PHPモードはデフォルトでは`php-enable-default-coding-style`関数で
221221
(add-hook 'php-mode-hook 'php-enable-default-coding-style)
222222
```
223223

224-
#### Symfony2 Style ####
224+
#### Symfony2 Style
225225

226226
このスタイルではメソッドチェーンのインデントの継続とぶらさがったセミコロンを整形できます。
227227

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ When reporting a bug please run the function `M-x php-mode-debug` and include it
4949
Experimental and In-Progress Features
5050
-------------------------------------
5151

52-
### CC Mode, CEDET, EDE, and Semantic ###
52+
### CC Mode, CEDET, EDE, and Semantic
5353

5454
In 2013 Daniel Haxney began rewriting parts of PHP Mode in terms of Emacs' built-in CC Mode. This laid the foundation for incorporating some of the inherit IDE-ish features of Emacs, such as CEDET, EDE, and Semantic. Support for these tools continues to improve thanks to the work of Andrea Turso, Steven Rémot, Joris Steyn, and others. If you wish to test, contribute to, or simply experiment with such features then [this thread is a good place to start](https://github.com/emacs-php/php-mode/issues/256).
5555

56-
### PHP 7 Support ###
56+
### PHP 7 Support
5757

5858
PHP 7 has been released. PHP Mode supports the following features and changes from PHP 7:
5959

@@ -67,23 +67,23 @@ PHP 7 has been released. PHP Mode supports the following features and changes f
6767
Features
6868
--------
6969

70-
### New Keywords ###
70+
### New Keywords
7171

7272
Now PHP Mode supports syntax highlighting for new keywords which PHP 5.4 introduced, e.g. those related to traits, such as `insteadof`. Also supported are the older keywords `clone` and `default`.
7373

74-
### Constants ###
74+
### Constants
7575

7676
Syntax highlighting includes every magic constant and predefined constant listed on the official PHP site. However, some constants from specific extensions are not currently included.
7777

78-
### Traits, Interfaces, and Namespaces ###
78+
### Traits, Interfaces, and Namespaces
7979

8080
Traits, interfaces, and namespaces now appear under Imenu listings. Fontification behaves properly for namespaces as well, so that code like `namespace Foo\Bar\Baz` no longer looks like a warning. This is also true for namespace aliases, e.g. `use <namespace> as <alias>`; currently the aliased name is not listed in Imenu, but future versions will address this.
8181

82-
### Treatment of Underscores ###
82+
### Treatment of Underscores
8383

8484
PHP Mode treats underscores as ‘symbol constituents’ (in Emacs terminology) so that you can use keys like `M-f` and `M-b` to move through the individual parts of a variable name like `$foo_bar_baz`.
8585

86-
### Chained Method Calls ###
86+
### Chained Method Calls
8787

8888
PHP Mode can align method calls over multiple lines anchored around the `->` operator, e.g.:
8989

@@ -97,7 +97,7 @@ This behaviour is off by default, but you can customize the variable `php-lineup
9797

9898
**Note:** Alignment will only work if you use one of the php-mode coding styles or inherit one of the styles.
9999

100-
### Nested Array Formatting ###
100+
### Nested Array Formatting
101101

102102
Nested function calls and `array()` structures now look better by default (or at least in my opinion). Here is an example of the style:
103103

@@ -111,7 +111,7 @@ $results = Post::model()->find(
111111
);
112112
```
113113

114-
### Anonymous Functions ###
114+
### Anonymous Functions
115115

116116
Anonymous functions such as
117117

@@ -121,19 +121,19 @@ $greet = function($name) { ... };
121121

122122
will now appear on Imenu; in this case the name will be `$greet`.
123123

124-
### Flymake Support ###
124+
### Flymake Support
125125

126126
By customizing the variable `php-executable` you can enable Flymake mode in order to see warnings and errors in real-time as you write code.
127127

128-
### Search Local Documentation ###
128+
### Search Local Documentation
129129

130130
The key command `C-c C-f` will search the PHP website for documentation on the word under the cursor. However, if you have a [local copy of the PHP documentation](http://us2.php.net/download-docs.php) then PHP Mode will try searching that documentation first. All you need to do is customize the variable `php-manual-path` and give it the path to your copy of the documentation. If PHP Mode cannot find something locally then it will still fallback on searching the PHP website.
131131

132-
### Executing Regions of PHP ###
132+
### Executing Regions of PHP
133133

134134
The command `php-send-region`, which is bound to `C-c C-r` by default, will execute the selected region of PHP code. In conjunction with the Emacs command `C-x h` you can use this to execute an entire file. Any output will appear in a buffer called `*PHP*`.
135135

136-
### PHPDoc Tag / Annotation Highlighting ###
136+
### PHPDoc Tag / Annotation Highlighting
137137

138138
PHPDoc is a documentation format similar to [JavaDoc](https://en.wikipedia.org/wiki/Javadoc).
139139

@@ -182,7 +182,7 @@ The annotations are the lines that begin with the `@` character, and PHP Mode wi
182182

183183
PHP Mode has not fully supported [PSR-5: PHPDoc (Draft)](https://github.com/phpDocumentor/fig-standards/blob/master/proposed/phpdoc.md) yet.
184184

185-
### Coding Styles ###
185+
### Coding Styles
186186

187187
By default PHP Mode tries to provide a reasonable style for indentation and formatting, which you can use via the function `php-enable-default-coding-style`. However, it provides other options suited for particular projects which you may find useful. Other coding styles are available through these functions:
188188

@@ -198,7 +198,7 @@ They will help format your code for PEAR/PSR-2 projects, or work on Drupal, Word
198198
(add-hook 'php-mode-hook 'php-enable-default-coding-style)
199199
```
200200

201-
#### Symfony2 Style ####
201+
#### Symfony2 Style
202202

203203
With this style method call chains can be formatted with indented continuation and a hanging semi-colon:
204204

@@ -212,19 +212,19 @@ With this style method call chains can be formatted with indented continuation a
212212

213213
This style is used widely throughout Symfony2 source code even if it is not explicitly mentioned in their conventions documents.
214214

215-
### Extra Constants ###
215+
### Extra Constants
216216

217217
If you commonly use a framework or library that defines a set of constants then you may wish to customize the value of `php-extra-constants`. It is a list of strings that PHP Mode will treat as additional constants, i.e. providing them the same level syntax highlighting that PHP Mode uses for built-in constants.
218218

219-
### Web Mode Constants and Keywords ###
219+
### Web Mode Constants and Keywords
220220

221221
If you use [Web Mode][] then PHP Mode will attempt to use any additional PHP constants and keywords that Web Mode allows you to define.
222222

223-
### Avoid HTML Template Compatibility ###
223+
### Avoid HTML Template Compatibility
224224

225225
Many developers use PHP Mode to edit pure PHP scripts (e.g. files with only PHP and no HTML). A basic compatibility layer with HTML has historically been part of PHP Mode but it does not work perfectly and can cause some bad side effects such as slowness and incorrect font locking. Configuring the `php-template-compatibility` property with a `nil` will cancel any attempt of HTML compatibility. [Web Mode](http://web-mode.org/) is a great alternative to PHP Mode if you need to work with PHP scripts that do contain HTML and other markup.
226226

227-
### Subword Mode ###
227+
### Subword Mode
228228

229229
GNU Emacs comes with [Subword Mode][], a minor mode that allows you to navigate the parts of a [camelCase][] as if they were separate words. For example, PHP Mode treats the variable `$fooBarBaz` as a whole name by default. But if you enable Subword Mode then Emacs will treat the variable name as three separate words, and therefore word-related commands (e.g. `M-f`, `M-b`, `M-d`) will only affect the camelCase part of the name under the cursor.
230230

@@ -236,11 +236,11 @@ If you want to always use Subword Mode for PHP files then you can add this to yo
236236

237237
The key-binding `C-c C-w` will also toggle Subword Mode on and off.
238238

239-
### Amaka Support ###
239+
### Amaka Support
240240

241241
Viewing and editing build scripts for [Amaka](http://trashofmasters.github.io/amaka/) will automatically enable PHP Mode.
242242

243-
### Insert current class/namespace ###
243+
### Insert current class/namespace
244244

245245
```el
246246
(with-eval-after-load 'php-mode

0 commit comments

Comments
 (0)