Drupal 9 CK editor 5 does not render the code

The CK editor 5 in Drupal 9.5 doesn’t render the HTML and JS Code. It just displays the raw code.

Custom block code:

Custom block code

Rendered output:

rendered output

I tried two ways; one is default way provided by ck editor to add code which is shown in the image. The other way is a traditional way to add code. By choosing the source I put html and JS codes.In this way the special characters in JS code like “<“, “>” are converted into escapes. So neither way is working.