mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:22:43 +00:00 
			
		
		
		
	HackStudio: Show .h files with C++ syntax highlighting
This commit is contained in:
		
							parent
							
								
									9131134704
								
							
						
					
					
						commit
						fe83d5087b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -308,7 +308,7 @@ void open_file(const String& filename) | |||
|     auto file = g_project->get_file(filename); | ||||
|     current_editor().set_document(const_cast<GTextDocument&>(file->document())); | ||||
| 
 | ||||
|     if (filename.ends_with(".cpp")) { | ||||
|     if (filename.ends_with(".cpp") || filename.ends_with(".h")) { | ||||
|         current_editor().on_change = [] { rehighlight(); }; | ||||
|         rehighlight(); | ||||
|     } else { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling