Forums for programming, Open source and free software.
You are not logged in.
Easy and simple and free editor for PHP files and HTML.
Features Done
- Free and open source
- Syntax highlighting using SynEdit component
- Highlight a HTML and PHP and XML in one file
- Auto complete PHP and HTML Keywords
- Auto complete Variables and Identifiers (not so good but some time it be usefull)
- Auto complete SQL Keyword in strings
- Intgerated with php dll (php5ts.dll) for run and check php script directly (console or internal mode)
- Multi project files
- As many of editors have a folder file list panel in the left.
- Open file in Unix or Windows or MAC format
- Highlight brackets
- Help integrated (you need to download CHM file froom php site)
Features TODO
- Macro record
- Print script
- Function Params hints
- In HTML value string can highlight PHP Script <? and ?>
- Integrating with DBG, but i am afraid it so hard, i will try
- Reformat HTML section
Features Not TODO, this is not in my plan so do not ask me for it.
- Code exeplorer
- Skins and Toolbars
- Lazy menu functions
- Code template
- Multi language
Component used (and thanks for them all)
- Team of PHP www.php.net
- SynEdit
- php4Delphi
- Keywords source: http://flatdev.republika.pl/php-functions-lastest.zip
- Match, Sergey Seroukhov
- HtmlHelp API http://www.helpware.net
Download and project page Light PHP Edit
There is many editor for PHP, i will collect it here
http://tswebeditor.atspace.org/
http://sourceforge.net/projects/phpeclipse
Offline
Good job zaher !
today I installed it , but I got this message :"This application has failed to start because FastMM_FullDebugMode.dll was not found.Re-installing the application may fix this problem"
what should I do ? ![]()
I use PHP5 ( Appserv 2.5.1 )
Offline
Ops, i will upload it again ![]()
It FastMM32 anti leak, dont mind about it.
Edit:
I uploaded 0.8.4
Offline
Hi,
If you would like improve your Light PHP Edit you can use my new components for SynEdit: TSynWeb (syntax highlighter for php/html/css/js) and SynTokenMatch (token/brace matching)
TSynWeb Features:
- support for embedded:
- PHP, CSS, JS in HTML
- PHP in CSS, JS
- support for UniSynEdit
- full validation for tags (also checks for valid '/>' or '/') and its attributes for HTML across difference versions (for XHTML - case sensitive)
- values in tags without quotation are also highlighted as ValueAttrib (only in HTML, in XHTML is highlighted as error because, XHTML doesn't allow for unquoted values)
- in CSS validation for tags (you can set also HTML version)
- validation for Ampersand tags (eg. &, ©)
- almost FULL validation for CSS across CSS1 and CSS2.1
- support for <script language="php"> as start tag for PHP (also <?, <?php, <?=, <%)
- end tags for PHP doesn't stop in strings, comments (stops only in singleline), etc, you can now write "<?xml ... ?>" and PHP mode doesn't stop,
- suppor for custom HEREDOC names (defined in TStringList, or any you type - comparing based on CRC8)
- supprt for encapusled vars or escaped chars in strings (different highlighter attrib) with error checking
- any word (but not keyword or function name) writed in UpperCase highlighted as ConstantAttrib
- ActiveHighlighterSwitch - see demo (check 'Active HL' in demo app)
- parsed source code of php to get function names (for php4 and php5+PECL)
- it doesn't use regexpr for matching <? and ?> or <script> (it's 'hand made')
- any many more.
SynTokenMatch:
Advanced token matching for SynEdit. Token matching based on higlighter tokens (not on chars like in SynEdit - GetBraceMatching/Ex).
You can use SynTokenMatch to inteligment match braces (), [], {}, or even tokens like begin->end, repeat->until, try->end, record->end.
Back token matching also works. For back token matching code is scanned line by line (not all lines, only nececery)
See source code and exe-demo:
http://flatdev.dotgeek.org/downloads.php?project=2
(TSynWeb v.1.1.55 demo doesn't have updated with latest SynToken v1.3 match, and have some small bugs)
PS. "Keywords source: http://flatdev.republika.pl/php-functio … .zip" is not really latest
If You would like better parsed php sources for functions names, values, short desc. i have it parsed and program to do that. For TSynWeb I used only function keywords.
Offline
Hi Krystian, Thanks for contact me.
I like to make Light PHP edit very light, and i use the highlighter as collector for variables and identefires so i will make to kind of LPE the second kind will include your SynWeb, or make somthing like Addon to more improvment the editor.
Your Syn Edit is very seductive for use it, i will try to add it ![]()
Offline
This highlighter could improve also auto completion (Ctrl+Space). For exapmle you could do autocomplete html attributes for tags but only valid:
<div |
| - cursor
If you press Ctrl+Space then it shows only attribues valid for DIV, not all tags and attributes like in LPE (and many other editors). Highlighter also highlight only valid attrubtes.
For CSS same!!
div {
border: |
if you press here ctrl+space then only valid attribues and special editor (like for margins - positive integer with chioce px/pm/em/... - editor box) shown - highlighter fully check all attribues (check also for valid positive and negative values!!!).
If you want I can write some usefull functions and demos for that ![]()
I worte TSynWeb because I wanted to write my php editor with main features:
- highlighter without common 'bugs' (like: echo "<?xml ... ?>", support for custom HEREDOC, highlighting vars in strings, and many more) - all of that is done with TSynWeb (and many more)
- support for projects tree with virtual dirs, local dirs/files, ftp dirs/files (of course editing direct form ftp too) - that's what I started to do now (component based on VirtualTreeView, and support for ftp from SYNAPSE)
- auto completion (Ctrl+Space) and code hint (Ctrl+Shift+Space) for html, php, css, js - it could be quite easy
Like for me highlighting is the most important thing for editors ![]()
First thing that I do while testing new editors is create new php/html file and write someting like that:
<a href="x<?php echo '?>'; ?> y<?php echo <<<EOF eof EOF; ?>z">
and look for results, if not passed then I uninstall it ![]()
Offline
Hi,
This is a great PHP Editor. I just have one question... Why does it add a file to the desktop every time I close Light PHP Edit?
Everytime it adds the file "lpe-options.xml" to my desktop. Is there a way to prevent this? Or, if this is a "have to be" file can it be placed in the application directory instead of my desktop?
Thanks
Keep up the good work.
Josh.
Offline
Open Regedit and look for
HKEY_CURRENT_USER\Software\LightPHPEdit
and change the Workspace value or delete it.
if you deleted it in next time run LPE it ask your to enter a Workspace for save options and recent files.
In next version i will make it as ini file instead of registry, and you can change the worksaace in the LPE.
Offline
Thank you very much for the reply.
I've changed the value to C:\Program Files\Light PHP Edit
Offline
Do you pay attention to sf.net tracker features?
Or I should enter my bug submissions / feature requests here?
I have posted some on SF.net about LPE. thanks in advance
Offline
Hi mandx
In fact SF not send me notification, but i noticed it yesterday, i will try to release new version with your request.
Offline
I have made some of the modifications I requested, i have sent a mail to you with a screenshoot
Offline
maybe you can include my modifications in the distribution (after you have approved it first ![]()
Offline
I will send you my real email account
Offline
Zaher:
Did you get my mail?
Offline
Yes i get it, i will check it in next Friday ![]()
Offline
Hi
I just download Light PHP Edit
It seems good and powerfull, but something confuse me :
I had opened many files but can't close any one of them I do no use anymore.
Is there any possibility to close a file and so, free a tab ?
Thanks
BR.
Offline
@br, i am sorry for very too late for my answer, but this days i am too busy to work on this project, i have many contract need to finish it ![]()
@jms, It is open source you need to use SVN or TSVN to get the source from sourceforge.net
Offline