1687 if self.fileName is not None and \ |
1687 if self.fileName is not None and \ |
1688 os.path.splitext(self.fileName)[1] in self.dbs.getExtensions('Ruby'): |
1688 os.path.splitext(self.fileName)[1] in self.dbs.getExtensions('Ruby'): |
1689 return True |
1689 return True |
1690 |
1690 |
1691 return False |
1691 return False |
1692 |
1692 |
|
1693 def isPreviewable(self): |
|
1694 """ |
|
1695 Public method to check, if the contents of the file is previewable in |
|
1696 a web browser. |
|
1697 |
|
1698 @return flag indicating a previewable file (boolean) |
|
1699 """ |
|
1700 if self.fileName is not None and \ |
|
1701 os.path.splitext(self.fileName)[1][1:] in Preferences.getEditor( |
|
1702 "PreviewableFileNameExtensions"): |
|
1703 return True |
|
1704 elif self.getLanguage() == "HTML": |
|
1705 return True |
|
1706 else: |
|
1707 return False |
|
1708 |
1693 def highlightVisible(self): |
1709 def highlightVisible(self): |
1694 """ |
1710 """ |
1695 Public method to make sure that the highlight is visible. |
1711 Public method to make sure that the highlight is visible. |
1696 """ |
1712 """ |
1697 if self.lastHighlight is not None: |
1713 if self.lastHighlight is not None: |