xoops forums

alain01

Quite a regular
Posted on: 12/12 2:02
alain01
alain01 (Show more)
Quite a regular
Posts: 335
Since: 2003/6/20
#1

Which editor do you use ?

hi,
i usually use notepad++]Resized Image
to edit all xoops files (tpl, php, css).
I just try the atom editor https://atom.io/Resized Image
.
I know sublime text but it's not free.
Please, let me know wich editor do you use, and why (list advantages and inconvenients).
Is there any editor with XOOPS plugin language (smarty and others xoops words) ?

Mamba

Moderator
Posted on: 12/12 5:54
Mamba
Mamba (Show more)
Moderator
Posts: 10838
Since: 2004/4/23
#2

Re: Which editor do you use ?

PhpStorm is the best ever!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

goffy

Quite a regular
Posted on: 12/12 6:57
goffy
goffy (Show more)
Quite a regular
Posts: 392
Since: 2010/12/27
#3

Re: Which editor do you use ?

I use also phpstorm, because with this tool you can immediately debug your code, can run code cleaning,....

geekwright

Quite a regular
Posted on: 12/12 13:50
geekwright
geekwright (Show more)
Quite a regular
Posts: 296
Since: 2010/10/15
#4

Re: Which editor do you use ?

PhpStorm is my tool of choice for everything XOOPS related. It is awesome!

In the free realm, Visual Studio Code is a very solid and powerful product.

alain01

Quite a regular
Posted on: 12/12 14:20
alain01
alain01 (Show more)
Quite a regular
Posts: 335
Since: 2003/6/20
#5

Re: Which editor do you use ?

Ok, so
i test both edidors this weekend.
Is there any snippets, extension for XOOPS, for
PhPstorm and Visual Studio Code ? (didnt find)

(XMF words, xoops smarty) ?

I think it's easy to create that from a duplicated template from other CMS and changing words keys...
Right ?

zyspec

Module Developer
Posted on: 12/12 17:26
zyspec
zyspec (Show more)
Module Developer
Posts: 1060
Since: 2004/9/21
#6

Re: Which editor do you use ?

I typically use Eclipse PDT.... I like it because:
  • there are versions for both Windows and Linux - so it's easy to switch between my various systems.
  • easy to create/modify coding styles (modified PSRxx, etc)
  • it's free
  • easily "jump-to" referenced functions
  • customized syntax highlighting for PHP, JS, XML, MySQL, etc
  • refactoring
  • GitHub integration (easy to pull/push/commit/etc)
  • Composer support
  • Good build/run tools
  • Eclipse community support
  • Bug/Issue tracking integration
  • code completion


  • The one drawback is lack of Smarty syntax support - there's a plugin for it but it's old & doesn't work well.

    I also use Notepad++ for a quick editor when needed. PHPStorm is a good product too but I haven't found enough difference/advantage to it that would cause me to change from Eclipse (and pay the money).

    geekwright

    Quite a regular
    Posted on: 12/13 0:48
    geekwright
    geekwright (Show more)
    Quite a regular
    Posts: 296
    Since: 2010/10/15
    #7

    Re: Which editor do you use ?

    Quote:

    alain01 wrote:
    ...
    Is there any snippets, extension for XOOPS, for
    PhPstorm and Visual Studio Code ? (didnt find)

    (XMF words, xoops smarty) ?
    ...


    With VSCode, you will want to install the PHP IntelliSense extension. (It will offer useful extensions when you open a file type for the first time,)

    With both PHPStorm and VSCode (and Eclipse as I recall,) you will open a directory (i.e. your XoopsCore25 clone.) The first thing that will happen is the program will build an index of all the files in that directory. From that index, it will know in most cases all the functions, classes, and variables by type and signature. That enables auto-completion, parameter hints and easy access to documentation blocks. Those features are one of the reasons for making the move from simple editors to integrated development environments (IDE)

    alain01

    Quite a regular
    Posted on: 12/13 0:52
    alain01
    alain01 (Show more)
    Quite a regular
    Posts: 335
    Since: 2003/6/20
    #8

    Re: Which editor do you use ?

    Quote:

    geekwright wrote:
    The first thing that will happen is the program will build an index of all the files in that directory. From that index, it will know in most cases all the functions, classes, and variables by type and signature. That enables auto-completion, parameter hints and easy access to documentation blocks.
    Haaaaa, ok, thanks for this very usefull detail

    alain01

    Quite a regular
    Posted on: 12/13 14:30
    alain01
    alain01 (Show more)
    Quite a regular
    Posts: 335
    Since: 2003/6/20
    #9

    Re: Which editor do you use ?

    Quote:

    goffy wrote:
    I use also phpstorm, because with this tool you can immediately debug your code, can run code cleaning,....
    Ok, i see "Run / Edit configuration"...

    Could you explain to me in 3 or 4 sentences (and for the other readers how you can debug the code ?
    May be with an example, i could understand easily.