Friends

Rate

  

Parmaja.com

Forums for programming, Open source and free software.

You are not logged in.

#1 2006-04-21 08:47:41

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Light PHP Edit

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

 

#2 2006-05-03 11:31:28

ali
Moderator
From: Damascus
Registered: 2004-06-25
Posts: 8
Website

Re: Light PHP Edit

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 ? smile

I use PHP5 ( Appserv 2.5.1 )

Offline

 

#3 2006-05-03 16:55:16

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Light PHP Edit

Ops, i will upload it again tongue

It FastMM32 anti leak, dont mind about it.

Edit:
I uploaded 0.8.4

Offline

 

#4 2006-06-13 02:17:28

Krystian
New member
From: Poland
Registered: 2006-06-13
Posts: 2
Website

Re: Light PHP Edit

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. &amp;, &copy;)
- 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 wink 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

 

#5 2006-06-13 14:53:11

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Light PHP Edit

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 smile

Offline

 

#6 2006-06-15 01:57:41

Krystian
New member
From: Poland
Registered: 2006-06-13
Posts: 2
Website

Re: Light PHP Edit

This highlighter could improve also auto completion (Ctrl+Space). For exapmle you could do autocomplete html attributes for tags but only valid:

Code:

<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!!

Code:

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 smile


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 big_smile
First thing that I do while testing new editors is create new php/html file and write someting like that:

Code:

<a href="x<?php echo '?>';
?>
y<?php echo <<<EOF
eof
EOF;
?>z">

and look for results, if not passed then I uninstall it wink

Offline

 

#7 2007-02-12 10:12:59

Josh
New member
Registered: 2007-02-12
Posts: 2

Re: Light PHP Edit

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

 

#8 2007-02-14 01:15:33

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Light PHP Edit

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

 

#9 2007-02-14 15:37:23

Josh
New member
Registered: 2007-02-12
Posts: 2

Re: Light PHP Edit

Thank you very much for the reply.

I've changed the value to C:\Program Files\Light PHP Edit

Offline

 

#10 2007-12-23 11:13:05

mandx
New member
Registered: 2007-12-23
Posts: 4

Re: Light PHP Edit

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

 

#11 2007-12-24 06:34:05

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Light PHP Edit

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

 

#12 2007-12-24 11:49:37

mandx
New member
Registered: 2007-12-23
Posts: 4

Re: Light PHP Edit

I have made some of the modifications I requested, i have sent a mail to you with a screenshoot

Offline

 

#13 2007-12-24 11:52:27

mandx
New member
Registered: 2007-12-23
Posts: 4

Re: Light PHP Edit

maybe you can include my modifications in the distribution (after you have approved it first wink

Offline

 

#14 2007-12-24 13:59:54

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Light PHP Edit

I will send you my real email account

Offline

 

#15 2007-12-25 21:19:43

mandx
New member
Registered: 2007-12-23
Posts: 4

Re: Light PHP Edit

Zaher:

Did you get my mail?

Offline

 

#16 2007-12-26 08:52:02

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Light PHP Edit

Yes i get it, i will check it in next Friday smile

Offline

 

#17 2008-03-15 06:53:53

br
New member
Registered: 2008-03-15
Posts: 1

Re: Light PHP Edit

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

 

#18 2008-05-03 19:36:14

jms
New member
From: Chile
Registered: 2008-05-03
Posts: 1
Website

Re: Light PHP Edit

Hi,

Is this an Open Source project??? or just a freeware?
(I didn't found any source)

thanks in advance...

Offline

 

#19 2008-05-10 04:22:32

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Light PHP Edit

@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 smile

@jms, It is open source you need to use SVN or TSVN to get the source from sourceforge.net

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

[ Generated in 0.022 seconds, 7 queries executed ]