

Check the Options > “Line Numbers” box.Optional: If you plan on printing your php sources, you may want to include line numbering.Verify that /* */ patterns are the comment color and that () and are the brackets color.


TEXTPAD 8 DOCUMENTCLASS HOW TO
I found out how to create an entirely -new- document class and was able to apply the php.syn file to it! Now the coloring on all php documents is specialized to that particular programming language!īelow is the process I took to create the PHP Document Class, although this can be applied to any filetype that you may want to open in Textpad: Editing these options was conveniently located in a few preloaded syntax files (html.syn, text.syn, etc). So I decided to try and figure out how to add // and /* */ to the comments part of the HTML class (which was where the PHP file extension was located). Since I’ve been doing a lot of PHP scripting I was growing tired of looking at their comments and having them displayed as regular text (coloring-wise). Or perhaps the PHP comment is not the same as the html comment (which it isn’t! HTML comments look like this: and PHP comments look like this: // stuff or /* more stuff */. Or you could add line numbers to Java script files and leave line numbering out for everything else. Example: you can completely change the coloring, paragraph options, tab-width and printing properties for HTML files only. Besides that it has coloring for various document classes.ĭocument classes are basically groups file extensions whose properties can be changed for each group.

TEXTPAD 8 DOCUMENTCLASS CODE
It is super-simple, but has a few advanced features that really make writing source code for various things so much nicer. I had before more general problem with the system, I thought I've resolved it with help of askubuntu, the thread is here:, I don't know if there is any connection between those problems.Textpad is my preferred text editor. I've uninstalled and installed once again TeXworks, the problem persist. But in TeXworks while trying to run pdfLaTeX appears: This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) It seems all required texlive packages are installed, in any case I can compile. I've just installed TeXworks on new computer (with ubuntu 10.4).
