Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Editor: line feed behaves diferently inside PHP tags than in HTML or Javascript

Guest
Jan 22, 2010 Jan 22, 2010

Hello, I have noticed that the editor inserts a new line in a different way, depending if you are inisde the <?php ?> tags or not.

If you are inside PHP and you insert a new line pressing ENTER, and the above line is indented, the cursor gets below the first character of the previous line in both cases, but if you are in PHP, the indented spaces are tabs (1 jump every 4 spaces by default), while if you are in HTML or Javascript, it's just spaces all the way to the left border.

Does anyone know how to make it to behave like in PHP even when you are outside the PHP tags?

TOPICS
Server side applications
358
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 22, 2010 Jan 22, 2010

Thread moved to the Dreamweaver Application Development forum, which deals with PHP and other server-side issues.

I don't think there is any way to change this. Indenting is handled rather inconsistently except in HTML and CSS.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 22, 2010 Jan 22, 2010

Thanks for the reply.I don't understand why you moved the post to this forum but i'm fine with it.

It's a pity there isn't any option to change this.. i find it very annoying having to delete all the spaces, i like the PHP-editor behaviour better. Ah well just a pet-peeve.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 23, 2010 Jan 23, 2010
LATEST

The thread was moved to the forum that deals with PHP issues. Posting in the right forum helps everyone. You are more likely to get a quick reply because it will be seen by people with knowledge of the subject. Others looking for answers to similar problems can find the answer more easily. The forum's search feature lets you restrict the search to a specific forum to make it easier to identify relevant answers.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines