Learn Greek/Syntax/He was teaching them
He was teaching them
Hear ἦν διδάσκων as one idea: he was teaching.
Was teaching
ἦν plus a present participle can say an ongoing past. ἦν διδάσκων is he was teaching. The participle does not start a new sentence. It completes ἦν. ἔχων is another participle, with ὡς: as one who has authority. The main verb of that explanation is ἦν.
They were astonished
ἐξεπλήσσοντο is the main verb of the first clause: they were astonished. The γάρ clause gives the reason.
kahee e-xep-LAYS-son-to e-PEE TAY dee-da-KHAY ow-TOO
And they were astonished at his teaching
For he was teaching them
Read ἦν and διδάσκων together. ὡς ἐξουσίαν ἔχων is the manner: as one having authority. The scribes are the contrast, joined by καί.
ayn gar dee-DAS-kon ow-TOOCE hos e-xoo-SEE-an E-khon kahee ookh hos hoy gram-ma-TICE
for he was teaching them as one who had authority, and not as the scribes
ἦν διδάσκων is he was teaching.
Check
What does ἦν διδάσκων mean as one idea?
Is διδάσκων a separate main verb?
What is ἔχων?