Jump to content




CC Syntax Highlighting/Code Completions v1.2 - Sublime Text 2

utility lua

  • You cannot reply to this topic
133 replies to this topic

#81 GravityScore

  • Members
  • 796 posts
  • LocationLand of Meh

Posted 27 March 2013 - 01:54 AM

View Postdiegodan1893, on 27 March 2013 - 01:50 AM, said:

View PostEngineer, on 26 March 2013 - 02:22 PM, said:

Grav thanks for the plugin!
Only one thing that annoys me that end and then enter is term.setBackgroundcolor(colors)

I dont know if this is fixable otherwise I should get used to hitting space after end! :P

That was fixed in the last update

I couldn't be bothered updating the Mega or Dropbox Zips, so if he didn't use the Package control method, then the update wouldn't be installed.

I should really update those zips....

#82 Engineer

  • Members
  • 1,378 posts
  • LocationThe Netherlands

Posted 27 March 2013 - 02:33 AM

View PostGravityScore, on 27 March 2013 - 01:54 AM, said:

View Postdiegodan1893, on 27 March 2013 - 01:50 AM, said:

View PostEngineer, on 26 March 2013 - 02:22 PM, said:

Grav thanks for the plugin!
Only one thing that annoys me that end and then enter is term.setBackgroundcolor(colors)

I dont know if this is fixable otherwise I should get used to hitting space after end! :P

That was fixed in the last update

I couldn't be bothered updating the Mega or Dropbox Zips, so if he didn't use the Package control method, then the update wouldn't be installed.

I should really update those zips....
Yup that was the problem, Im using the github now :)
Thanks for the awesome plugin

#83 MudkipTheEpic

  • Members
  • 639 posts
  • LocationWhere you'd least expect it.

Posted 27 March 2013 - 03:11 AM

in is redstone.getInput(side)

(Should we post bugs on the Github repository, or on this thread)

#84 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 27 March 2013 - 03:14 AM

Just remove the zips grav.make people use package control

#85 GravityScore

  • Members
  • 796 posts
  • LocationLand of Meh

Posted 27 March 2013 - 03:36 AM

View PostTheOriginalBIT, on 27 March 2013 - 03:14 AM, said:

Just remove the zips grav.make people use package control

Good idea :P

#86 MudkipTheEpic

  • Members
  • 639 posts
  • LocationWhere you'd least expect it.

Posted 01 April 2013 - 04:08 PM

Is there any way to make ALL files open in this mode ALL the time?


And the centerprint function is bugged, first line second argument should be ny not y.



#87 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 01 April 2013 - 04:25 PM

View PostMudkipTheEpic, on 01 April 2013 - 04:08 PM, said:

Is there any way to make ALL files open in this mode ALL the time?

modify this package made by NeverCast
http://www.computerc...uto-lua-syntax/

#88 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 01 April 2013 - 07:50 PM

View Posttheoriginalbit, on 20 February 2013 - 02:51 AM, said:

Second Report. I iterated through _G printing out all the functions and variables. There are a few you missed, take a look at the output in Sublime too see what. :)/>

EDIT: Oh there is a bug in the iteration, the native. functions are obviously term.native ... but I assume you would know that :)/>

I also suggest that variables and functions should also highlight when _G. is at the front though, its still a valid function call/variable

The Output


The Code I Used To Do This (In case you're interested)
Spoiler
In your script k is always a string so you won't need tostring

#89 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 01 April 2013 - 07:54 PM

View Postsuperaxander, on 01 April 2013 - 07:50 PM, said:

In your script k is always a string so you won't need tostring
when it is a string tostring just returns it. but its just habit for me to do it that way from peripheral.getMethods(<side>) not always returning it correctly with some 3rd party peripherals, some the method name is in k and others its in v... so I'm used to doing
print( tostring(k)..' : '..tostring(v) )

In any case the code didn't overly matter... I was iterating the globals to get the function and variable listings.

#90 GravityScore

  • Members
  • 796 posts
  • LocationLand of Meh

Posted 01 April 2013 - 07:59 PM

View PostMudkipTheEpic, on 01 April 2013 - 04:08 PM, said:

And the centerprint function is bugged, first line second argument should be ny not y.

Fixed on GitHub. Thanks!

#91 MudkipTheEpic

  • Members
  • 639 posts
  • LocationWhere you'd least expect it.

Posted 02 April 2013 - 03:13 AM

View PostGravityScore, on 01 April 2013 - 07:59 PM, said:

View PostMudkipTheEpic, on 01 April 2013 - 04:08 PM, said:

And the centerprint function is bugged, first line second argument should be ny not y.

Fixed on GitHub. Thanks!

NP. And, I don't really get how to use that plugin... :/

#92 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 02 April 2013 - 03:18 AM

View PostMudkipTheEpic, on 02 April 2013 - 03:13 AM, said:

And, I don't really get how to use that plugin... :/
Which? NeverCasts?

#93 MudkipTheEpic

  • Members
  • 639 posts
  • LocationWhere you'd least expect it.

Posted 02 April 2013 - 03:19 AM

Yes.

#94 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 02 April 2013 - 03:41 AM

View PostMudkipTheEpic, on 02 April 2013 - 03:19 AM, said:

Yes.
Did you follow his basic instructions? and change the property from "Lua" to "ComputerCraft"

#95 Engineer

  • Members
  • 1,378 posts
  • LocationThe Netherlands

Posted 02 April 2013 - 06:34 AM

I have found a bug:
os.loadApi(name)
os.unloadApi(name)

--Should be:
os.loadAPI(name)
os.unloadAPI(name)

Thanks for the great add-on :)

#96 Molinko

  • Members
  • 54 posts

Posted 02 April 2013 - 04:24 PM

I, I Love you.. *vomits rainbow *wafted away by unicorns

#97 GravityScore

  • Members
  • 796 posts
  • LocationLand of Meh

Posted 02 April 2013 - 08:40 PM

View PostEngineer, on 02 April 2013 - 06:34 AM, said:

I have found a bug:
os.loadApi(name)
os.unloadApi(name)

--Should be:
os.loadAPI(name)
os.unloadAPI(name)

Thanks for the great add-on :)

Thanks! Fixed on GitHub.

#98 grand_mind1

  • Members
  • 207 posts

Posted 06 April 2013 - 01:29 PM

This looks amazing but unfortunately I can't seem to install it. On step seven it says to search for ST2-ComputerCraft-Package. When I try to search for this nothing comes up. This looks really good and I want to use it. If someone could help me with the installation that would be great!
Thanks! :D

#99 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 06 April 2013 - 01:34 PM

View Postgrand_mind1, on 06 April 2013 - 01:29 PM, said:

This looks amazing but unfortunately I can't seem to install it. On step seven it says to search for ST2-ComputerCraft-Package. When I try to search for this nothing comes up. This looks really good and I want to use it. If someone could help me with the installation that would be great!
Thanks! :D
Package Control: http://wbond.net/sub...package_control

What you need to do is after installing Package Control add the repo by doing: CTRL+SHIFT+P then typing "Package Control: Add Repository" then type in the URL of the Github repository.
After that type "Package Control: Install Package" and search for "ComputerCraft". It should show up then.

#100 grand_mind1

  • Members
  • 207 posts

Posted 06 April 2013 - 01:47 PM

View PostSammich Lord, on 06 April 2013 - 01:34 PM, said:

View Postgrand_mind1, on 06 April 2013 - 01:29 PM, said:

This looks amazing but unfortunately I can't seem to install it. On step seven it says to search for ST2-ComputerCraft-Package. When I try to search for this nothing comes up. This looks really good and I want to use it. If someone could help me with the installation that would be great!
Thanks! :D
Package Control: http://wbond.net/sub...package_control

What you need to do is after installing Package Control add the repo by doing: CTRL+SHIFT+P then typing "Package Control: Add Repository" then type in the URL of the Github repository.
After that type "Package Control: Install Package" and search for "ComputerCraft". It should show up then.
Hmmm. I tried all of this but it still didn't work. On my third try I accidentally left the console open. After clicking "Pack Control: Install Package" this error is logged to the console:
Package Control: Error downloading repository. HTTP error 404 downloading https://api.github.com/users/G...erCraft-Package/repos?per_page=100.
I don't know if this is something I've done wrong.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users