mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-14 00:14:18 +00:00
Introjucer: added hack to enable c++ syntax highlighting in the editor for extensionless libc++ header files.
This commit is contained in:
parent
3af553e34f
commit
2877653cc3
3 changed files with 17 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ SourceCodeEditor::SourceCodeEditor (OpenDocumentManager::Document* doc, CodeDocu
|
|||
GenericCodeEditorComponent* ed = nullptr;
|
||||
const File file (document->getFile());
|
||||
|
||||
if (file.hasFileExtension (sourceOrHeaderFileExtensions))
|
||||
if (fileNeedsCppSyntaxHighlighting (file))
|
||||
{
|
||||
ed = new CppCodeEditorComponent (file, codeDocument);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue