As others have mentioned, pseudocode is not well defined. But to say that makes the task infeasible is pretty closed-minded - after all, a human looking at pseudo-code could highlight it decently, and surely that proves that it's possible. At least there could be a feature to highlight pseudocode poorly. In fact, many people write pseudocode in a language close to that which they are familiar, and using the syntax highlighter for that language should work pretty well. Other than that, I think syntax highlighting with lang-default does an ok job, you can judge for yourself:
def a():
map = {x: 1.2f, y='hi'}
return map
class MyClass{
a = 4,
b = 3,
}
function foo(int a, double b, MyClass c){
print("This highlights ok I guess");
for each x in the set:
x+=1
}
FOR EACH vertex in stack
IF !seen[vertex] THEN
FOR edge in E[vertex]
add vertex to seen
add vertex to stack
ELSE
do nothing
ENDIF
Of course, some pseudocode styles are highlighted better than others.