Feature Requests item #1244324, was opened at 2005-07-25 11:12 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=352439&aid=1244324&group_id=2439
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Submitted By: Piotr Fusik (pfusik) Assigned to: Nobody/Anonymous (nobody) Summary: Recognizing file type from the first line of file Initial Comment: It would be nice if SciTE could determine syntax highlighting by looking at the first line of file (after filename matching failed). Examples: - XML files with different extensions (assuming <?xml ... is present) - HTML files opened from MSIE with "View source" (no extension, but <html> or <HTML> present) - Unix executable text files (#!/bin/sh, #!/usr/bin/perl, etc.) This feature is supported by Crimson Editor - it simply looks if the first line contains some specific text. Maybe it would be better to test against a regular expression. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=352439&aid=1244324&group_id=2439 _______________________________________________ Scintilla-interest mailing list Scintilla-interest@lyra.org http://mailman.lyra.org/mailman/listinfo/scintilla-interest