mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Libraries now support syntax coloring and are built on IDE startup.
This commit is contained in:
@ -19,6 +19,8 @@
|
||||
|
||||
package processing.app;
|
||||
|
||||
import processing.app.syntax.*;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
import java.util.zip.*;
|
||||
@ -225,4 +227,17 @@ public class LibraryManager {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Add syntax coloring
|
||||
*/
|
||||
public void addSyntaxColoring(PdeKeywords keywords) {
|
||||
Library library;
|
||||
Collection libraries = getBuiltLibraries();
|
||||
Iterator iterator = libraries.iterator();
|
||||
while(iterator.hasNext()){
|
||||
library = (Library)iterator.next();
|
||||
library.addSyntaxColors(keywords);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user