[GH-ISSUE #1040] Syntax error in PHP files in advanced editor #668

Closed
opened 2026-03-02 16:00:41 +03:00 by kerem · 4 comments
Owner

Originally created by @ccpplinux on GitHub (May 11, 2023).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1040

When I am opening a PHP script in advanced script on the demo website then in the opening tag of PHP that is at <?php I am getting the error message Syntax Error, Unexpected '<'. How to fix this problem in advanced editor?

Originally created by @ccpplinux on GitHub (May 11, 2023). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1040 When I am opening a PHP script in advanced script on the demo website then in the opening tag of PHP that is at <?php I am getting the error message Syntax Error, Unexpected '<'. How to fix this problem in advanced editor?
kerem closed this issue 2026-03-02 16:00:41 +03:00
Author
Owner

@smalos commented on GitHub (May 16, 2023):

This could probably be fixed by setting inline : false

var editor = ace.edit("editor");
editor.getSession().setMode( {path:"ace/mode/<?php echo $ext; ?>", inline : false} );
<!-- gh-comment-id:1549211664 --> @smalos commented on GitHub (May 16, 2023): This could probably be fixed by setting inline : false ``` var editor = ace.edit("editor"); editor.getSession().setMode( {path:"ace/mode/<?php echo $ext; ?>", inline : false} ); ```
Author
Owner

@Yunge66 commented on GitHub (Jan 11, 2025):

Very Good, repaired successfully!

<!-- gh-comment-id:2585127354 --> @Yunge66 commented on GitHub (Jan 11, 2025): Very Good, repaired successfully!
Author
Owner

@madsoliver commented on GitHub (Mar 8, 2025):

should this be default? I have the same issue.

<!-- gh-comment-id:2708501458 --> @madsoliver commented on GitHub (Mar 8, 2025): should this be default? I have the same issue.
Author
Owner

@Yunge66 commented on GitHub (Mar 27, 2025):

Yes, you can fix this with his suggestion.
This is it:
This could probably be fixed by setting inline : false

发件人:Mads Oliver Jenssen @.>
发送时间:2025年3月9日(周日) 05:56
@.
>
@.>; @.>
主 题:Re: [prasathmani/tinyfilemanager] Syntax error in PHP files in advanced editor (Issue #1040)
should this be default? I have the same issue.

Reply to this email directly, view it on GitHub <https://github.com/prasathmani/tinyfilemanager/issues/1040#issuecomment-2708501458 >, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AZY4U7NOV2GW6HZYISBQPFT2TNRPDAVCNFSM6AAAAABU7WOHBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMBYGUYDCNBVHA >.
You are receiving this because you commented.Message ID: @.>
madsoliver left a comment (prasathmani/tinyfilemanager#1040) <https://github.com/prasathmani/tinyfilemanager/issues/1040#issuecomment-2708501458 >
should this be default? I have the same issue.

Reply to this email directly, view it on GitHub <https://github.com/prasathmani/tinyfilemanager/issues/1040#issuecomment-2708501458 >, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AZY4U7NOV2GW6HZYISBQPFT2TNRPDAVCNFSM6AAAAABU7WOHBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMBYGUYDCNBVHA >.
You are receiving this because you commented.Message ID: @.
>

<!-- gh-comment-id:2758678582 --> @Yunge66 commented on GitHub (Mar 27, 2025): Yes, you can fix this with his suggestion. This is it: This could probably be fixed by setting inline : false ------------------------------------------------------------------ 发件人:Mads Oliver Jenssen ***@***.***> 发送时间:2025年3月9日(周日) 05:56 ***@***.***> ***@***.***>; ***@***.***> 主 题:Re: [prasathmani/tinyfilemanager] Syntax error in PHP files in advanced editor (Issue #1040) should this be default? I have the same issue. — Reply to this email directly, view it on GitHub <https://github.com/prasathmani/tinyfilemanager/issues/1040#issuecomment-2708501458 >, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AZY4U7NOV2GW6HZYISBQPFT2TNRPDAVCNFSM6AAAAABU7WOHBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMBYGUYDCNBVHA >. You are receiving this because you commented.Message ID: ***@***.***> madsoliver left a comment (prasathmani/tinyfilemanager#1040) <https://github.com/prasathmani/tinyfilemanager/issues/1040#issuecomment-2708501458 > should this be default? I have the same issue. — Reply to this email directly, view it on GitHub <https://github.com/prasathmani/tinyfilemanager/issues/1040#issuecomment-2708501458 >, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AZY4U7NOV2GW6HZYISBQPFT2TNRPDAVCNFSM6AAAAABU7WOHBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMBYGUYDCNBVHA >. You are receiving this because you commented.Message ID: ***@***.***>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#668
No description provided.