Skip to content

Commit 8044ded

Browse files
committed
Add comment to php-mode-test for generate .faces files
1 parent 70d9ccd commit 8044ded

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/php-mode-test.el

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,4 +684,15 @@ Meant for `php-mode-test-issue-503'."
684684
(with-php-mode-test ("lang/errorcontrol.php" :faces t))
685685
(with-php-mode-test ("lang/magical-constants/echo.php" :faces t)))
686686

687+
;; For developers: How to make .faces list file.
688+
;;
689+
;; 1. Press `M-x eval-buffer' in this file bufffer.
690+
;; 2. Copy follows code snippet:
691+
;; (setq x (php-mode-test--buffer-face-list (current-buffer)))
692+
;; 3. Visit target buffer of testing PHP file.
693+
;; 4. Press `M-:' (or `M-x eval-expression') and yank killed the code snippet.
694+
;; 5. Press `M-x ielm' and input `x' and RET key.
695+
;; 6. Kill output list and yank list to .faces file.
696+
;; 7. Execute `make test' in shell.
697+
687698
;;; php-mode-test.el ends here

0 commit comments

Comments
 (0)