CodeLobster IDE

Free cross-platform PHP IDE (HTML, PHP, CSS, JavaScript, Python code editor) with support Drupal, Joomla, Twig, JQuery, BackboneJS, LaravelJS, Node.js, CodeIgniter, CakePHP, Laravel, Magento, MeteorJS, Phalcon, Symfony, VueJS, WordPress, Yii
It is currently Sat Apr 27, 2024 9:55 am

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Declare PHP Variables
PostPosted: Sun Nov 22, 2009 8:41 pm 
Offline

Joined: Sun Nov 22, 2009 8:19 pm
Posts: 8
I think it would benefit some people if there was a thing on the side on Code Lobster that let you declare PHP Variables. It would just be a table where you could put a variable (like $var1) and then it gets added to the autocomplete list. This could also be disabled, and it would work like it does now.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 23, 2009 8:51 am 
Offline
Site Admin

Joined: Wed Sep 12, 2007 2:18 pm
Posts: 3932
Hi.

Codelobster creates variables list for autocompelte automaticaly while code parsing.
If you don't see your variables in the autocomplete list - please, send us your code files. We will check it.

Regards,
Codelobster Team.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 23, 2009 10:38 pm 
Offline

Joined: Sun Nov 22, 2009 8:19 pm
Posts: 8
No, I can see it, but I think there should be a side bar that you could put PHP variables in, (like $var1), and the auto compleate ONLY takes variables from that, because if you type in $RellyLongVariableNumber1
instead of $ReallyLongVariableNumber1 just once, you would get confuzed later, and it might take a while to check all the variables.(of course, this could be turned off, and it would work like it does now.)

What do you think?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 24, 2009 11:59 am 
Offline
Site Admin

Joined: Wed Sep 12, 2007 2:18 pm
Posts: 3932
Hi.

Autocomplete for PHP variables works OK.
Take a look at the following:

Image

Regards,
Codelobster Team.


Last edited by Admin on Fri Dec 25, 2009 1:13 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 26, 2009 1:46 am 
Offline

Joined: Sun Nov 22, 2009 8:19 pm
Posts: 8
Here is a picture of what I'm suggesting:
Image

1: the place you "declare" variables.
2: underlined because not declared (typo)
3: underlined because not declared (forgot to do it)
4: enable/disable button. Disabled is what it is now.

If you typed in "$" onto this screen shot, the auto complete would come up with all the things on the right side, not devide or RellyLongVariableName

What do you think?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 26, 2009 1:25 pm 
Offline
Site Admin

Joined: Wed Sep 12, 2007 2:18 pm
Posts: 3932
Hi.

After typing variable name in the string number 4 it appears for autocomplete list and in the Class View and File Window.

About correct using of variables names: We will apply this functionality later while more complex task with code checker.

Regards,
Codelobster Team.


Last edited by Admin on Fri Dec 25, 2009 1:13 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 27, 2009 1:02 pm 
Offline

Joined: Sun Nov 22, 2009 8:19 pm
Posts: 8
I think your taking this the wrong way.
This is an SUGGESTION

NOT a support topic. I am NOT having any trouble with it.

I am trying to suggest that you haver the choice to declare PHP variables, so you won't get mixed up with other variables.

In the picture in my last post, I was typing "$RellyLongVariableName" without looking at the screen, so then it got added to the auto complete.

When I was copying and pasteing it, it didn't show and error or anything, because it thought that is was a legal variable.

If you made this suggestion and added it to Code Lobster, I would have added "$ReallyLongVariableName" to the right side, then I enabled the declaring function, the "$RellyLongVariableName" would be underlined blue, and I could change it.

What do you think?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 27, 2009 1:50 pm 
Offline
Site Admin

Joined: Wed Sep 12, 2007 2:18 pm
Posts: 3932
Hi.

Big thanks again.
We undestand that you make a suggestion :)

As I said, we will apply code validation after several versions.
So, if you type incorrect variable name (that hasn't been declared) it will be highlighted. I think it will cover your case also.

Regards,
Codelobster Team.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 27, 2009 9:06 pm 
Offline

Joined: Sun Nov 22, 2009 8:19 pm
Posts: 8
Thankyou! :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 89 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2016 phpBB Group