You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
The first of all: Thank to everybody for the mode, I've been using it for a long time.
At this moment I'm trying to learn some of emacs lisp, and I'm thinking in practice with a mode that I use, for example this one, but I have some doubts with the testing.
What is a php.face file? Exists any documentation about how to test and how you develop this mode?
Thank.
PS: I don't know how to set a "question" tag and if this is the right place to ask.
The text was updated successfully, but these errors were encountered:
@mgallego
Hi, I'm sorry I missed your question for a week and a half.
The .php.face file is a serialized list of file contents and "Face".
This is related to code coloring: it is called “Text Property” "Face" in Emacs terms.
In general, major mode for programming is realized by a mechanism called font-lock-mode.
From ERT, we just compare the serialized list to the file and the result of actually coloring the PHP script. Therefore, there are some problems with test visibility.
Also, generating .php.face files from PHP files requires some manual work.
I'm generating a “faces list” (list of propertized text) with the following steps:
Load the php-mode-test--buffer-face-list function from php-mode-test.el.
Open the target test file in PHP-mode.
At this time, disable some minor modes that cause distracting coloring. In my Emacs environment:
Hi,
The first of all: Thank to everybody for the mode, I've been using it for a long time.
At this moment I'm trying to learn some of emacs lisp, and I'm thinking in practice with a mode that I use, for example this one, but I have some doubts with the testing.
What is a php.face file? Exists any documentation about how to test and how you develop this mode?
Thank.
PS: I don't know how to set a "question" tag and if this is the right place to ask.
The text was updated successfully, but these errors were encountered: