Skip to content

Code Editor Only Works for Python - Other Languages Non-Functional #931

@Ananya44444

Description

@Ananya44444

Bug Description

The virtual lab code editor has a language dropdown with 4 options (Python, JavaScript, C, C++), but only Python actually works. When users select other languages, the editor doesn't change modes or provide appropriate sample code.

Current Behavior

  • Language dropdown shows: Python, JavaScript, C, C++
  • Selecting any language other than Python has no effect
  • Editor remains in Python mode regardless of selection
  • No syntax highlighting for non-Python languages
  • No appropriate sample code for selected languages

Expected Behavior

  • Language selection should change Ace editor syntax highlighting mode
  • Each language should load appropriate "Hello, World!" sample code
  • Syntax highlighting should match the selected programming language
  • All 4 languages should be fully functional
Screen.Recording.2026-02-22.184544.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions