# Come attivare la evidenziazione della sintassi?

**URL:** <https://meta.discourse.org/t/how-to-enable-syntax-highlighting/332908>\
**Category:** Product Support\
**Created:** [26 Ottobre 2024, 4:45am UTC](https://meta.discourse.org/t/how-to-enable-syntax-highlighting/332908 "2024-10-26T04:45:24Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Yt.w](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yt.w/32/348367_2.png) [@Yt.w](https://meta.discourse.org/u/Yt.w)\
**Post date:** [27 Ottobre 2024, 6:08am UTC](https://meta.discourse.org/t/how-to-enable-syntax-highlighting/332908/8 "2024-10-27T06:08:20Z")

</div>

autosolto

Ho modificato /lib/highlight\_js.rb  
da

```ruby
def self.path
    "/highlight-js/#{Discourse.current_hostname}/#{version SiteSetting.highlighted_languages}.js"
end

```

a

```ruby
def self.path
    "https://#{Discourse.current_hostname}/highlight-js/#{Discourse.current_hostname}/#{version SiteSetting.highlighted_languages}.js"
end

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-enable-syntax-highlighting/332908)._
