Coding

How do I see the current encoding of a file in Sublime Text 2?

  p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px Arial; color: #242729; -webkit-text-stroke: #242729; background-color: #ffffff} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial; color: #242729; -webkit-text-stroke: #242729; background-color: #e1e3e5} p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Consolas; color: #242729; -webkit-text-stroke: #242729; background-color: #eff0f1} span.s1 {font-kerning: none} span.s2 {font-kerning: none; text-shadow: 0.0px 1.0px 0.0px #000000} span.s3 {font: 15.0px Arial; font-kerning: none; background-color: #ffffff}

Another option in case you don't wanna use a plugin:

Ctrl+` or

View -> Show Console

type on the console the following command:

view.encoding()

In case you want to something more intrusive, there's a option to create an shortcut that executes the following command:

sublime.message_dialog(view.encoding())

0 Bình luận

Trở về
  • HTML5 Canvas
  • HTML5 Canvas

     The <canvas> element is used to draw graphics, on the fly, on a web page. Draw a red rectangle, a gradient rectangle,...